Ignore:
Timestamp:
09/26/13 15:41:49 (11 years ago)
Author:
angelo
Message:

Ticket #3491 - Compatibilizar Expresso com novas versoes do PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/adodb-pager.inc.php

    r34 r8222  
    22 
    33/* 
    4         V4.94 23 Jan 2007  (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved. 
     4        V5.18 3 Sep 2012   (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved. 
    55          Released under both BSD license and Lesser GPL library license.  
    66          Whenever there is any discrepancy between the two licenses,  
     
    6161         
    6262                $curr_page = $id.'_curr_page'; 
    63                 if (empty($PHP_SELF)) $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF']); // htmlspecialchars() to prevent XSS attacks 
     63                if (!empty($PHP_SELF)) $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF']); // htmlspecialchars() to prevent XSS attacks 
    6464                 
    6565                $this->sql = $sql; 
     
    248248                if ($this->db->pageExecuteCountRows) $ADODB_COUNTRECS = true; 
    249249                if ($this->cache) 
    250                         $rs = &$this->db->CachePageExecute($this->cache,$this->sql,$rows,$this->curr_page); 
     250                        $rs = $this->db->CachePageExecute($this->cache,$this->sql,$rows,$this->curr_page); 
    251251                else 
    252                         $rs = &$this->db->PageExecute($this->sql,$rows,$this->curr_page); 
     252                        $rs = $this->db->PageExecute($this->sql,$rows,$this->curr_page); 
    253253                $ADODB_COUNTRECS = $savec; 
    254254                 
    255                 $this->rs = &$rs; 
     255                $this->rs = $rs; 
    256256                if (!$rs) { 
    257257                        print "<h3>Query failed: $this->sql</h3>"; 
Note: See TracChangeset for help on using the changeset viewer.