Falko Timme
2014-08-06 53f0d29ab0b237a12998cadd64df1c8f7dfa3144
- made it possible to specify database table for AUTHSQL.
1 files modified
1 ■■■■ changed files
interface/lib/classes/listform.inc.php 1 ●●●● patch | view | raw | blame | history
interface/lib/classes/listform.inc.php
@@ -97,6 +97,7 @@
            $querystring = str_replace("{AUTHSQL}", $app->tform->getAuthSQL('r'), $querystring);
            $querystring = str_replace("{AUTHSQL-A}", $app->tform->getAuthSQL('r', 'a'), $querystring);
            $querystring = str_replace("{AUTHSQL-B}", $app->tform->getAuthSQL('r', 'b'), $querystring);
            $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);