IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2012, 10:41:55 AM (14 years ago)
Author:
Serge CHASTEL
Message:

Query restriction is now used after the count query

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/def/autocode.php

    r29485 r34012  
    2828// ** TABLE RESTRICTIONS **
    2929
    30 if ($restricted == 0) {
    31   if ("$UNRESTRICTED" != "none") {
    32     $WHERE = "$WHERE $UNRESTRICTED";
    33   }
    34 }
     30// Note: the restriction is now moved AFTER the count query
    3531
    3632// Add GROUP BY statements if any
     
    5652  menu_end();
    5753}
     54
     55// Restrict the query if it is necessary
     56if ($restricted == 0) {
     57  if ("$UNRESTRICTED" != "none") {
     58    $WHERE = "$WHERE $UNRESTRICTED";
     59  }
     60}
     61
    5862// set up the row counter variables
    5963if ($ID['from']) {
Note: See TracChangeset for help on using the changeset viewer.