PHP warning

Creating default object from empty value

/home/lakkorak/public_html/shop/protected/controllers/AjaxController.php(5688)

5676     public function actionAjaxForgotPasswordForm() {
5677         $return = array();
5678 
5679         $posted = (object) array(
5680             'data'  => isset($_POST['data']) ? $_POST['data'] : '',
5681             'opt'   => isset($_POST['opt']) ? $_POST['opt'] : '',
5682             'ajax'  => isset($_POST['ajax']) ? $_POST['ajax'] : '',
5683             'extra' => isset($_POST['extra']) ? $_POST['extra'] : '',
5684         );
5685         $posted = clsFunctions::convertToObjectArray($posted);
5686 
5687         if (isset($_GET['page'])) {
5688             $posted->opt->page = $_GET['page'];
5689         }
5690 
5691         // Get html
5692         $html = clsWidgets::getCustomerForgotPasswordForm($posted->opt);
5693 
5694         $return['fnc_data']['title']  = isset($html->title) ? $html->title : '';
5695         $return['fnc_data']['body']   = isset($html->body) ? $html->body : '';
5696         $return['fnc_data']['footer'] = isset($html->footer) ? $html->footer : '';
5697         $return['fnc_data']['class']  = 'change-password';
5698 
5699         $return['fnc'] = 'InfoModal';
5700 

Stack Trace

#7
+
 /home/lakkorak/public_html/shop/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-19 05:30:13 LiteSpeed Yii Framework/1.1.14