Changeset 1399 in ExiteCMS for trunk/includes/db_functions.php


Ignore:
Timestamp:
04/30/08 18:37:00 (4 years ago)
Author:
hverton
Message:

fixed error in ModUserTables() where table names were not prefixed when not preceded with a space (as in fieldA=fieldB, which should become database.fieldA=database.fieldB)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/db_functions.php

    r1288 r1399  
    4242            $isUserQuery = true; 
    4343            $query = str_replace(" ".$db_prefix.$usertable, " ".$user_db_name.".".$user_db_prefix.$usertable, $query); 
     44            $query = str_replace("=".$db_prefix.$usertable, "=".$user_db_name.".".$user_db_prefix.$usertable, $query); 
    4445        } 
    4546    } 
Note: See TracChangeset for help on using the changeset viewer.