PHP warning

Creating default object from empty value

/home/onlineveleprodaj/public_html/b2b/protected/controllers/AjaxController.php(5482)

5470     public function actionAjaxForgotPasswordForm() {
5471         $return = array();
5472 
5473         $posted = (object) array(
5474             'data'  => isset($_POST['data']) ? $_POST['data'] : '',
5475             'opt'   => isset($_POST['opt']) ? $_POST['opt'] : '',
5476             'ajax'  => isset($_POST['ajax']) ? $_POST['ajax'] : '',
5477             'extra' => isset($_POST['extra']) ? $_POST['extra'] : '',
5478         );
5479         $posted = clsFunctions::convertToObjectArray($posted);
5480 
5481         if (isset($_GET['page'])) {
5482             $posted->opt->page = $_GET['page'];
5483         }
5484 
5485         // Get html
5486         $html = clsWidgets::getCustomerForgotPasswordForm($posted->opt);
5487 
5488         $return['fnc_data']['title']  = isset($html->title) ? $html->title : '';
5489         $return['fnc_data']['body']   = isset($html->body) ? $html->body : '';
5490         $return['fnc_data']['footer'] = isset($html->footer) ? $html->footer : '';
5491         $return['fnc_data']['class']  = 'change-password';
5492 
5493         $return['fnc'] = 'InfoModal';
5494 

Stack Trace

#7
+
 /home/onlineveleprodaj/public_html/b2b/index.php(17): CApplication->run()
12 $yii=dirname(__FILE__).'/yii/framework/yii.php';
13 $config=dirname(__FILE__).'/protected/config/main.php';
14 
15 require_once($yii);
16 
17 Yii::createWebApplication($config)->run();
2024-03-28 19:48:47 LiteSpeed Yii Framework/1.1.14