Till Brehm
2014-06-18 b509d0056fda3793f81d3332c8f601559ae268aa
Changed a function in tform.inc.php to make it compatible with php 5.1 (used in Centos 5.10).
1 files modified
8 ■■■■ changed files
interface/lib/classes/tform.inc.php 8 ●●●● patch | view | raw | blame | history
interface/lib/classes/tform.inc.php
@@ -252,7 +252,9 @@
            unset($tmp_recordid);
            $querystring = str_replace("{AUTHSQL}", $this->getAuthSQL('r'), $querystring);
            $querystring = preg_replace_callback('@{AUTHSQL::(.+?)}@', "self::table_auth_sql", $querystring);
            //$querystring = preg_replace_callback('@{AUTHSQL::(.+?)}@', "self::table_auth_sql", $querystring);
            //*Used the ld form to be compatible with php < 5.3
            $querystring = preg_replace_callback('@{AUTHSQL::(.+?)}@', create_function('$matches','global $app; $tmp = $app->tform->getAuthSQL("r", $matches[1]); return $tmp;'), $querystring);
            // Getting the records
            $tmp_records = $app->db->queryAllRecords($querystring);
@@ -293,10 +295,12 @@
        return $values;
    }
    /*
    function table_auth_sql($matches){
        return $this->getAuthSQL('r', $matches[1]);
    }
    */
    //* If the parameter 'valuelimit' is set
    function applyValueLimit($limit, $values) {