';
- $rres=tquery('SELECT COUNT(InstID) AS cnt, SUM(Statuses) AS tstatuses, SUM(Logins) AS tlogins, SUM(Registrations) AS tregs FROM InstActivity WHERE InstID='.$row['ID']);
+ $rres=tquery('SELECT COUNT(InstID) AS cnt, SUM(Statuses) AS tstatuses, SUM(Logins) AS tlogins, SUM(Registrations) AS tregs FROM InstActivity WHERE InstID='.$row['ID'],__LINE__);
$out.='
'._('Last 12 weeks activity');
if (mysqli_num_rows($rres)>0) {
$rrow=mysqli_fetch_assoc($rres);
@@ -538,7 +538,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
$out.=' ('._('totals:').' '.$rrow['tstatuses'].' '._('statuses').', '.$rrow['tlogins'].' '._('logins').', '.$rrow['tregs'].' '._('registrations').')';
}
$out.='
'.N;
- $rres=tquery('SELECT * FROM InstActivity WHERE InstID='.$row['ID'].' ORDER BY Week ASC');
+ $rres=tquery('SELECT * FROM InstActivity WHERE InstID='.$row['ID'].' ORDER BY Week ASC',__LINE__);
$out.='
';
$tot=mysqli_num_rows($rres);
if ($tot>0) {
@@ -550,7 +550,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
}
$out.='
'.N;
- $rres=tquery($link,'SELECT * FROM InstChecks WHERE InstID='.$row['ID'].' ORDER BY Time DESC LIMIT 0,8');
+ $rres=tquery($link,'SELECT * FROM InstChecks WHERE InstID='.$row['ID'].' ORDER BY Time DESC LIMIT 0,8',__LINE__);
$tot=mysqli_num_rows($rres);
$buf=array();
while ($rrow=mysqli_fetch_assoc($rres)) $buf[]=$rrow;