Странно что не работало, оказывается в system/database.php есть
public function __get( $name )
{
switch ( $name )
{
case 'affectedRows' :
return $this ->_affected_rows;
break ;
case 'count' :
return $this ->_count;
break ;
case 'timeCount' :
return $this ->_tcount;
break ;
default :
return isset( $this ->_tables[ $name ]) ? $this ->_tables[ $name ] : null;
}
}
|
Added 5 minutes later:
Да и в модуле polls все работает...
if ( $alreadyvoted != 1 && !( $cfg [ 'polls' ][ 'ip_id_polls' ] == 'id' && $usr [ 'id' ] == 0))
{
foreach ( $vote as $val )
{
$sql2 = $db ->query( "UPDATE $db_polls_options SET po_count = po_count+1 WHERE po_pollid = $id AND po_id = '" . (int) $val . "'" );
}
if ( $db ->affectedRows > 0)
{
$db ->insert( $db_polls_voters , array (
'pv_pollid' => $id ,
'pv_userid' => (int) $usr [ 'id' ],
'pv_userip' => $usr [ 'ip' ]
));
}
}
|
Стоит признать что моих знаний отчего в опросах работает а в корзине нет - недостаточно.