1
0

* Removed "static" db layer typelist to prevent accidental over-

writes of referenced return values (garvinhicking)
This commit is contained in:
Garvin Hicking
2009-07-27 09:52:13 +00:00
parent 6d90049416
commit ee102b4402
8 changed files with 10 additions and 7 deletions

View File

@ -60,7 +60,7 @@ function serendipity_db_in_sql($col, &$search_ids, $type = ' OR ') {
*/
function &serendipity_db_query($sql, $single = false, $result_type = "both", $reportErr = false, $assocKey = false, $assocVal = false, $expectError = false) {
global $serendipity;
static $type_map = array(
$type_map = array(
'assoc' => MYSQL_ASSOC,
'num' => MYSQL_NUM,
'both' => MYSQL_BOTH,