librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1125] be more verbose about which mandatory fields ar


From: Clint Adams
Subject: [Librefm-commits] [1125] be more verbose about which mandatory fields are allegedly missing
Date: Sat, 02 May 2009 18:19:55 +0000

Revision: 1125
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1125
Author:   clint
Date:     2009-05-02 18:19:55 +0000 (Sat, 02 May 2009)
Log Message:
-----------
be more verbose about which mandatory fields are allegedly missing

Modified Paths:
--------------
    trunk/gnukebox/submissions/1.2/index.php

Modified: trunk/gnukebox/submissions/1.2/index.php
===================================================================
--- trunk/gnukebox/submissions/1.2/index.php    2009-05-02 17:18:10 UTC (rev 
1124)
+++ trunk/gnukebox/submissions/1.2/index.php    2009-05-02 18:19:55 UTC (rev 
1125)
@@ -61,7 +61,11 @@
        }
 
        if (!isset($_POST['t'][$i]) || !isset($_POST['a'][$i]) || 
!isset($_POST['i'][$i])) {
-           die("FAILED Track $i was submitted with empty mandatory 
field(s).\n");
+           $f = isset($_POST['t'][$i]) ? 't' : '';
+           $f .= isset($_POST['a'][$i]) ? 'a' : '';
+           $f .= isset($_POST['i'][$i]) ? 'i' : '';
+
+           die("FAILED Track $i was submitted with empty mandatory field(s): 
{$f}\n");
        }
 
        switch (mb_detect_encoding($_POST['t'][$i])) {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]