r4133 bugfix: showNotice was not merged with another v2 log messages
authorAlexey Andriyanov <alan@al-an.info>
Fri, 14 Jan 2011 17:25:06 +0000 (17:25 +0000)
committerAlexey Andriyanov <alan@al-an.info>
Fri, 14 Jan 2011 17:25:06 +0000 (17:25 +0000)
inc/functions.php

index 95f3712..cf55ca5 100644 (file)
@@ -4399,7 +4399,11 @@ function setMessage ($message, $type, $direct_rendering)
                                $_SESSION['log'][] = array ('code' => $type, 'message' => $message);
                                break;
                        case 2:
-                               $code = ($type == 'error' ? 100 : $type == 'warning' ? 200 : $type == 'success' ? 0 : NULL);
+                               $code = ($type == 'error' ? 100 :
+                                                $type == 'warning' ? 200 :
+                                                $type == 'success' ? 0 :
+                                                $type == 'neutral' ? 300 :
+                                                NULL);
                                $_SESSION['log']['m'][] = array ('c' => $code, 'a' => array ($message));
                                break;
                }