]> granicus.if.org Git - php/commitdiff
trigger_error() should be ($msg,$level), no?
authorColin Viebrock <cmv@php.net>
Thu, 1 Feb 2001 20:15:08 +0000 (20:15 +0000)
committerColin Viebrock <cmv@php.net>
Thu, 1 Feb 2001 20:15:08 +0000 (20:15 +0000)
pear/PEAR.php.in

index c58ab56439cf4d8dd48d615994c8a1474e350509..354d244d57d2d57af7a883270f7ae210d7820299 100644 (file)
@@ -185,12 +185,12 @@ class PEAR
                      is_object($options[0]) && is_string($options[1]))) {
                     $setcallback = $options;
                 } else {
-                    trigger_error(E_USER_WARNING, "invalid error callback");
+                    trigger_error("invalid error callback", E_USER_WARNING);
                 }
                 break;
                     
             default:
-                trigger_error(E_USER_WARNING, "invalid error mode");
+                trigger_error("invalid error mode", E_USER_WARNING);
                 break;
         }
     }