Changeset 441 for trunk/services


Ignore:
Timestamp:
Dec 5, 2013 6:58:11 AM (10 years ago)
Author:
anonymous
Message:

Very minor things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/services/admins.php

    r432 r441  
    44 * For details visit the project site: <http://trac.strangecode.com/codebase/>
    55 * Copyright 2001-2012 Strangecode, LLC
    6  * 
     6 *
    77 * This file is part of The Strangecode Codebase.
    88 *
     
    1111 * Free Software Foundation, either version 3 of the License, or (at your option)
    1212 * any later version.
    13  * 
     13 *
    1414 * The Strangecode Codebase is distributed in the hope that it will be useful, but
    1515 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1616 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    1717 * details.
    18  * 
     18 *
    1919 * You should have received a copy of the GNU General Public License along with
    2020 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>.
     
    282282    $app =& App::getInstance();
    283283    $db =& DB::getInstance();
    284    
     284
    285285    $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $id);
    286286    if ($lock->isLocked() && !$lock->isMine()) {
     
    341341    $app =& App::getInstance();
    342342    $db =& DB::getInstance();
    343    
     343
    344344    $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $id);
    345345    if ($lock->isLocked() && !$lock->isMine()) {
     
    386386    $app =& App::getInstance();
    387387    $db =& DB::getInstance();
    388    
     388
    389389    // Remove any stale cached list data.
    390390    $cache->delete('list');
     
    429429    $app =& App::getInstance();
    430430    $db =& DB::getInstance();
    431    
     431
    432432    $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $frm['admin_id']);
    433433    if ($lock->isLocked() && !$lock->isMine()) {
     
    474474    global $auth;
    475475    $db =& DB::getInstance();
    476    
     476
    477477    $where_clause = '';
    478478
     
    508508        SELECT
    509509            " . $auth->getParam('db_table') . ".*,
    510             " . $auth->getParam('db_table') . "." . $auth->getParam('db_primary_key') . " AS admin_id,           
     510            " . $auth->getParam('db_table') . "." . $auth->getParam('db_primary_key') . " AS admin_id,
    511511            a1." . $auth->getParam('db_username_column') . " AS added_admin_username,
    512512            a2." . $auth->getParam('db_username_column') . " AS modified_admin_username
     
    536536        return $list;
    537537    }
    538    
     538
    539539    // The list was not cached, so issue the real query.
    540540    $qid = $db->query($sql);
Note: See TracChangeset for help on using the changeset viewer.