Author: AlbrechtS
Date: 2010-12-28 01:31:37 -0800 (Tue, 28 Dec 2010)
New Revision: 584
Log:
Silenced warnings in phplib/base-str.php.


Modified:
   trunk/phplib/base-str.php

Modified: trunk/phplib/base-str.php
===================================================================
--- trunk/phplib/base-str.php   2010-12-28 01:15:17 UTC (rev 583)
+++ trunk/phplib/base-str.php   2010-12-28 09:31:37 UTC (rev 584)
@@ -123,9 +123,9 @@
   // Get form data...
   $contents = "";
 
-  if (array_key_exists("message", $_GET))
+  if (array_key_exists("message", $_GET) && $_GET["message"] != "")
     $contents .= $STR_MESSAGES[$_GET["message"]];
-  else if (array_key_exists("message", $_POST))
+  else if (array_key_exists("message", $_POST) && $_POST["message"] != "")
     $contents .= $STR_MESSAGES[$_POST["message"]];
 
   if (((array_key_exists("message", $_GET) && $_GET["message"] != "") ||
@@ -176,7 +176,7 @@
 
 
   // Make sure contents is non-empty for file attachments...
-  if ($contents == "" && !file != "")
+  if ($contents == "" && $file != "")
     $contents = "Attached file \"$file\"...";
 
   // Set the primary recipient of the message...
@@ -503,7 +503,8 @@
   global $argc, $argv, $_GET, $_POST, $_COOKIE, $LOGIN_LEVEL, $LOGIN_USER,
          $PAGE_MAX, $PHP_SELF, $PHP_URL, $STR_STATUS_SHORT, 
$STR_PRIORITY_SHORT,
         $STR_SCOPE_SHORT, $REQUEST_METHOD, $PROJECT_NAME, $PROJECT_MODULE,
-        $STR_MESSAGES, $STR_VERSIONS, $STR_SUBSYSTEMS, $STR_MANAGERS;
+        $STR_MESSAGES, $STR_VERSIONS, $STR_SUBSYSTEMS, $STR_MANAGERS,
+        $html_path;
 
 
   // Get command-line options...

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to