Error: Undefined variable $account

#1 - File: /controllers/api_controller.php, line 29

27:                 } else {
28:                     $meta = $this -> phej -> m_display -> PrepareMeta("api/get/device");
29:                     $meta["response"] = $this -> phej -> m_device -> APIRequest("get", $request, $account);
30:                     header("Content-type: text/xml;");
31:                     $this -> LoadView('api/api_response', $meta);

#2 - File: /Phej.php, line 280

278:             if (!defined('VIEW')) define('VIEW', $view);
279: 
280:             $this -> controller -> $view($args);
281:         } catch (Exception $e) {
282:             phej_display_exception($this, $e);

#3 - File: /index.php, line 111

109: 
110: session_start();
111: $phej -> run(FRONT_URI);
112: 
113: } catch (Exception $e) {

Stack trace:

#FileLineCall
1 /controllers/api_controller.php 29 phej_exception_error_handler(integer, string, string, integer)
2 /Phej.php 280 api_controller -> get(array[1])
3 /index.php 111 Phej -> run(string)

Activity log:

LevelFileLineTime (ms)Memory (kB)Message
INFO/Phej.php9100Phej framework v2.0 started
INFO/Phej.php34802Loading plugin "pdoquery"
INFO/Phej.php3482254Loading plugin "phej_auth"
INFO/Phej.php3482263Loading plugin "jquery"
INFO/Phej.php3482267Loading plugin "tablesorter"
INFO/Phej.php3482273Loading plugin "superfish"
INFO/Phej.php3482282Loading plugin "ganalytics"
INFO/Phej.php3482286Loading plugin "woopra"
INFO/Phej.php3482287Loading plugin "syntaxhighlighter"
INFO/Phej.php1223516Starting Phej run with URI "/api/get/device"
INFO/Phej.php2033594Using controller "api"
INFO/Phej.php2464608Using view method "get"