diff --git a/src/Pluf.php b/src/Pluf.php index 35e205e..d181a9b 100644 --- a/src/Pluf.php +++ b/src/Pluf.php @@ -39,6 +39,7 @@ class Pluf { $GLOBALS['_PX_starttime'] = microtime(true); $GLOBALS['_PX_uniqid'] = uniqid($GLOBALS['_PX_starttime'], true); + $GLOBALS['_PX_signal'] = array(); Pluf::loadConfig($config); date_default_timezone_set(Pluf::f('time_zone', 'Europe/Berlin')); mb_internal_encoding(Pluf::f('encoding', 'UTF-8')); diff --git a/src/Pluf/Signal.php b/src/Pluf/Signal.php index bfa12cc..e6cc136 100644 --- a/src/Pluf/Signal.php +++ b/src/Pluf/Signal.php @@ -57,9 +57,6 @@ class Pluf_Signal */ public static function connect($signal, $who, $sender=null) { - if (!isset($GLOBALS['_PX_signal'])) { - $GLOBALS['_PX_signal'] = array(); - } if (!isset($GLOBALS['_PX_signal'][$signal])) { $GLOBALS['_PX_signal'][$signal] = array(); }