Merge pull request #839 from romainneutron/fix-1621

Fix #1621 : User query per last applied template triggers an error
This commit is contained in:
Romain Neutron
2013-12-11 14:48:21 -08:00

View File

@@ -323,7 +323,7 @@ class User_Query implements User_QueryInterface
} }
if ($this->last_model) { 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(); $sql_like = array();