Added 500 error message

This commit is contained in:
Deon George
2013-12-04 21:36:46 +11:00
parent fe73d9a7d8
commit a7fcddc48c
2 changed files with 10 additions and 1 deletions

View File

@@ -20,7 +20,10 @@ abstract class lnApp_SystemMessage extends HTMLRender {
public function __call($name,$args=NULL) {
parent::__call($name,$args);
Session::instance()->set('sessionmsgs',static::$_data);
// If we are a CLI session, then we have no session
if (PHP_SAPI !== 'cli')
Session::instance()->set('sessionmsgs',static::$_data);
return $this;
}