From: Brion Vibber Date: Wed, 23 May 2007 18:32:49 +0000 (+0000) Subject: bug 8772: fix for previous patch -- function that takes one parameters was passed... X-Git-Tag: 1.31.0-rc.0~52817 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=e9dedd488668f6e3d6be78a3a6e51169380f321f;p=lhc%2Fweb%2Fwiklou.git bug 8772: fix for previous patch -- function that takes one parameters was passed two. --- diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 7a50400827..392295a31e 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -134,7 +134,7 @@ class ApiQueryRevisions extends ApiQueryBase { $this->addWhereFld('rev_page', current(array_keys($pageSet->getGoodTitles()))); if(!is_null($user)) { - $this->addWhere('rev_user_text', $user); + $this->addWhere('rev_user_text =' . $this->getDB()->addQuotes($user)); } elseif (!is_null( $excludeuser)) { $this->addWhere('rev_user_text != ' . $this->getDB()->addQuotes($excludeuser)); }