mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 04:41:53 +02:00
Code cleanup and optimization
This commit is contained in:
@@ -126,7 +126,7 @@ $nbr_cols = (defined("NEWSCAT_COLS")) ? NEWSCAT_COLS : $nbr_cols;
|
||||
return '';
|
||||
}
|
||||
$cats = array();
|
||||
while ($row = $sql2->db_Fetch())
|
||||
while ($row = $sql2->fetch())
|
||||
{
|
||||
if($row['ccount'] > 0) $cats[$row['category_id']] = $row;
|
||||
}
|
||||
|
@@ -117,9 +117,9 @@ if ($parms[1] == 'value')
|
||||
case EUF_DB_FIELD : // check for db_lookup type
|
||||
$tmp = explode(',',$ueStruct['user_'.$parms[0]]['user_extended_struct_values']);
|
||||
$sql_ue = new db; // Use our own DB object to avoid conflicts
|
||||
if($sql_ue->db_Select($tmp[0],"{$tmp[1]}, {$tmp[2]}","{$tmp[1]} = '{$uVal}'"))
|
||||
if($sql_ue->select($tmp[0],"{$tmp[1]}, {$tmp[2]}","{$tmp[1]} = '{$uVal}'"))
|
||||
{
|
||||
$row = $sql_ue->db_Fetch();
|
||||
$row = $sql_ue->fetch();
|
||||
$ret_data = $row[$tmp[2]];
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user