Changeset 13090 for trunk/include/ws_functions.inc.php
- Timestamp:
- Feb 11, 2012, 12:48:55 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_functions.inc.php
r13074 r13090 1746 1746 } 1747 1747 1748 $params['image_id'] = (int)$params['image_id']; 1749 if ($params['image_id'] > 0) 1750 { 1751 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 1752 1753 $query=' 1754 SELECT * 1755 FROM '.IMAGES_TABLE.' 1756 WHERE id = '.$params['image_id'].' 1757 ;'; 1758 1759 $image_row = pwg_db_fetch_assoc(pwg_query($query)); 1760 if ($image_row == null) 1761 { 1762 return new PwgError(404, "image_id not found"); 1763 } 1764 } 1765 1748 1766 // does the image already exists ? 1749 1767 if ($params['check_uniqueness']) … … 1798 1816 null, // categories 1799 1817 isset($params['level']) ? $params['level'] : null, 1800 null, // image_id1818 $params['image_id'] > 0 ? $params['image_id'] : null, 1801 1819 $params['original_sum'] 1802 1820 );
Note: See TracChangeset
for help on using the changeset viewer.