my page shows 2 php errors (curiously only on OSX and not Windows 10 or Android):
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: controllers/Dating.php
Line Number: 1822
Backtrace:
File: /home/xxx/public_html/application/controllers/Dating.php
Line: 1822
Function: _error_handler
File: /home/xxx/public_html/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/Dating.php
Line Number: 1822
Backtrace:
File: /home/xxx/public_html/application/controllers/Dating.php
Line: 1822
Function: _error_handler
File: /home/xxx/public_html/index.php
Line: 292
Function: require_once
Line 1822 has:
Code:
$str = "select * from users WHERE id!='".$this->session->userdata('user_id')."' AND country='".$query1[0]->country_name."' AND image_name!='' AND IS_ONLINE!='0' ORDER BY IS_ONLINE DESC LIMIT 0,6 ";
and line 1818:
Code:
$query1=$this->db->query($str1)->result();