mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge pull request #839 from romainneutron/fix-1621
Fix #1621 : User query per last applied template triggers an error
This commit is contained in:
@@ -323,7 +323,7 @@ class User_Query implements User_QueryInterface
|
||||
}
|
||||
|
||||
if ($this->last_model) {
|
||||
$sql .= ' AND usr.lastModel = "' . mysql_real_escape_string($this->last_model) . '" ';
|
||||
$sql .= ' AND usr.lastModel = ' . $this->app['phraseanet.appbox']->get_connection()->quote($this->last_model) . ' ';
|
||||
}
|
||||
|
||||
$sql_like = array();
|
||||
|
Reference in New Issue
Block a user