Ignore:
Timestamp:
Dec 10, 2013, 11:46:03 AM (10 years ago)
Author:
mistic100
Message:

various minor issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdminTools/include/events.inc.php

    r25845 r25915  
    99{
    1010  global $MultiView, $conf, $template, $page, $user, $picture;
     11
     12  if (script_basename() == 'picture' and empty($picture['current']))
     13  {
     14    return;
     15  }
    1116
    1217  $url_root = get_root_url();
     
    186191  global $page, $conf, $MultiView, $user, $picture;
    187192
     193  if (!isset($_GET['delete']) and !isset($_POST['action']) and $_POST['action'] != 'quick_edit')
     194  {
     195    return;
     196  }
     197
    188198  $query = 'SELECT added_by FROM '. IMAGES_TABLE .' WHERE id = '. $page['image_id'] .';';
    189199  list($added_by) = pwg_db_fetch_row(pwg_query($query));
    190200
    191   if (!$MultiView->is_admin() && $user['id'] != $added_by)
     201  if (!$MultiView->is_admin() and $user['id'] != $added_by)
    192202  {
    193203    return;
     
    215225  }
    216226
    217   if (@$_POST['action'] == 'quick_edit')
     227  if ($_POST['action'] == 'quick_edit')
    218228  {
    219229    include_once(PHPWG_ROOT_PATH . 'admin/include/functions.php');
Note: See TracChangeset for help on using the changeset viewer.