Changeset 25915 for extensions/AdminTools/include/events.inc.php
- Timestamp:
- Dec 10, 2013, 11:46:03 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdminTools/include/events.inc.php
r25845 r25915 9 9 { 10 10 global $MultiView, $conf, $template, $page, $user, $picture; 11 12 if (script_basename() == 'picture' and empty($picture['current'])) 13 { 14 return; 15 } 11 16 12 17 $url_root = get_root_url(); … … 186 191 global $page, $conf, $MultiView, $user, $picture; 187 192 193 if (!isset($_GET['delete']) and !isset($_POST['action']) and $_POST['action'] != 'quick_edit') 194 { 195 return; 196 } 197 188 198 $query = 'SELECT added_by FROM '. IMAGES_TABLE .' WHERE id = '. $page['image_id'] .';'; 189 199 list($added_by) = pwg_db_fetch_row(pwg_query($query)); 190 200 191 if (!$MultiView->is_admin() &&$user['id'] != $added_by)201 if (!$MultiView->is_admin() and $user['id'] != $added_by) 192 202 { 193 203 return; … … 215 225 } 216 226 217 if ( @$_POST['action'] == 'quick_edit')227 if ($_POST['action'] == 'quick_edit') 218 228 { 219 229 include_once(PHPWG_ROOT_PATH . 'admin/include/functions.php');
Note: See TracChangeset
for help on using the changeset viewer.