librefm-commits
[Top][All Lists]
Advanced

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

[Librefm-commits] [1130] be more verbose in mandatory fields failure mes


From: Clint Adams
Subject: [Librefm-commits] [1130] be more verbose in mandatory fields failure message to track down whether something is being truncated or elided
Date: Sat, 02 May 2009 18:38:33 +0000

Revision: 1130
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1130
Author:   clint
Date:     2009-05-02 18:38:32 +0000 (Sat, 02 May 2009)
Log Message:
-----------
be more verbose in mandatory fields failure message to track down whether 
something is being truncated or elided

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 18:28:52 UTC (rev 
1129)
+++ trunk/gnukebox/submissions/1.2/index.php    2009-05-02 18:38:32 UTC (rev 
1130)
@@ -61,9 +61,9 @@
        }
 
        if (!isset($_POST['t'][$i]) || !isset($_POST['a'][$i]) || 
!isset($_POST['i'][$i])) {
-           $f = isset($_POST['t'][$i]) ? '' : 't';
-           $f .= isset($_POST['a'][$i]) ? '' : 'a';
-           $f .= isset($_POST['i'][$i]) ? '' : 'i';
+           $f = isset($_POST['t'][$i]) ? "T({$_post['t'[$i]'})" : 't';
+           $f .= isset($_POST['a'][$i]) ? "A({$_post['a'[$i]'})" : 'a';
+           $f .= isset($_POST['i'][$i]) ? "I({$_post['i'[$i]'})" : 'i';
 
            die("FAILED Track $i was submitted with empty mandatory field(s): 
{$f}\n");
        }





reply via email to

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