If 'tables' is a string that starts with a space, treat it as user-enforced FROM definition.
Development sponsored by: Dirty Hacks Inc.
This commit is contained in:
parent
123f2fe6e5
commit
3de6fd8c81
1 changed files with 5 additions and 1 deletions
|
|
@ -1045,7 +1045,11 @@ class Database {
|
|||
else
|
||||
$from = ' FROM ' . implode( ',', array_map( array( &$this, 'tableName' ), $table ) );
|
||||
} elseif ($table!='') {
|
||||
$from = ' FROM ' . $this->tableName( $table );
|
||||
if ($table{0}==' ') {
|
||||
$from = ' FROM ' . $table;
|
||||
} else {
|
||||
$from = ' FROM ' . $this->tableName( $table );
|
||||
}
|
||||
} else {
|
||||
$from = '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue