BUGFIX: not loading because of GLOBALS, now fixed-

This commit is contained in:
Stephan Kasdorf
2019-01-25 20:01:31 +01:00
parent f7e47b05bf
commit a2bb8a2f48
2 changed files with 6 additions and 4 deletions

View File

@@ -7,15 +7,15 @@ namespace Nibiru\Module;
* Last Update: 04.01.2019
* Time: 19:13
*/
use Nibiru\Adapter;
use Nibiru\Attributes;
use Nibiru\Config;
use Nibiru\Controller;
use Nibiru\Router;
use Nibiru\View;
abstract class Pageination implements Adapter\Pageination
abstract class Pageination implements \Nibiru\IPageination
{
use \Nibiru\Messages\Pageination;
use Attributes\Pageination;
private static $_table = false;
private static $_current_page_content = array();

View File

@@ -224,7 +224,8 @@ final class Debug
*/
private function _setGlobalsData()
{
if(sizeof($GLOBALS)>0)
if(sizeof($GLOBALS)>0 && array_key_exists(0, $GLOBALS))
{
$this->_globals_data = '<pre>' . print_r($GLOBALS, true) . '</pre>';
}
@@ -233,6 +234,7 @@ final class Debug
$this->_globals_data = Messages::msg_globals();
}
Controller::getInstance()->varname( View::getInstance()->getEngine(), array('ndbglobals' => $this->getGlobalsData()) );
}
/**