Changeset 2770 for trunk/include/ws_functions.inc.php
- Timestamp:
- Oct 18, 2008, 2:45:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_functions.inc.php
r2757 r2770 188 188 return new PwgError(401, 'Access denied'); 189 189 } 190 $params['image_id'] = array_map( 'intval',$params['image_id'] ); 190 191 if ( empty($params['image_id']) ) 191 192 { … … 292 293 GROUP BY i.id 293 294 '.$order_by.' 294 LIMIT '. $params['per_page']*$params['page'].','.$params['per_page'];295 LIMIT '.(int)($params['per_page']*$params['page']).','.(int)$params['per_page']; 295 296 296 297 $result = pwg_query($query); … … 684 685 WHERE '.$where_comments.' 685 686 ORDER BY date 686 LIMIT '. $params['comments_per_page']*(int)$params['comments_page'].687 ','. $params['comments_per_page'];687 LIMIT '.(int)($params['comments_per_page']*$params['comments_page']). 688 ','.(int)$params['comments_per_page']; 688 689 689 690 $result = pwg_query($query); … … 858 859 return new PwgError(401, 'Access denied'); 859 860 } 861 $params['image_id'] = array_map( 'intval',$params['image_id'] ); 860 862 if ( empty($params['image_id']) ) 861 863 { … … 1343 1345 AND ', $where_clauses).' 1344 1346 '.$order_by.' 1345 LIMIT '. $params['per_page']*$params['page'].','.$params['per_page'];1347 LIMIT '.(int)($params['per_page']*$params['page']).','.(int)$params['per_page']; 1346 1348 1347 1349 $result = pwg_query($query);
Note: See TracChangeset
for help on using the changeset viewer.