Mantis - Quercus
Viewing Issue Advanced Details
5823 block always 11-10-14 06:19 11-10-14 06:19
extremia  
Windows  
normal 7  
new 4.0.36  
open  
none    
none  
0005823: Fatal Error: Can't use object 'com.caucho.quercus.lib.db.MysqliResult' as array
[14-11-10 15:58:47.052] {resin-port-8080-51} c:\Java\resin-pro-4.0.41\webapps\ROOT\webwidget\tilaus.yhteenveto.php:21: Fatal Error: Can't use object 'com.caucho.quercus.lib.db.MysqliResult' as array
Example code:

$smsChoiceValue = $_SESSION['user']['companyid'];
$sql = 'SELECT aySmsLaskutus FROM asiakasyritys LEFT JOIN tilaus on tilaus.tiYritId = ayId WHERE '.(!empty($smsChoiceValue) ? 'ayId = '.$smsChoiceValue : 'tilaus.tiSessionId = "'.$_SESSION['cust']['ordernumber'].'"'). ' LIMIT 1';
$result = $db1->Query($sql);
$checked = $result['deliver'][$i]['ttSms'] == true ? 'checked' : '';

There are no notes attached to this issue.