aboutsummaryrefslogtreecommitdiffstats
path: root/lib/user/database.php
diff options
context:
space:
mode:
authorjfd <jfd@lance>2012-08-25 02:26:50 +0200
committerjfd <jfd@lance>2012-08-25 02:26:50 +0200
commit1bfe26bb097d163ff1a6e7e1a1aee5dd9c628f79 (patch)
tree3604f8ba5568eb3f3efe33516f2c2702b2e79072 /lib/user/database.php
parent379f27ed03fc6cc1b83cfea4921390906ca33514 (diff)
downloadnextcloud-server-1bfe26bb097d163ff1a6e7e1a1aee5dd9c628f79.tar.gz
nextcloud-server-1bfe26bb097d163ff1a6e7e1a1aee5dd9c628f79.zip
remove superflous LIMIT
Diffstat (limited to 'lib/user/database.php')
-rw-r--r--lib/user/database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user/database.php b/lib/user/database.php
index 1746c4fe0c0..dff4d145fc7 100644
--- a/lib/user/database.php
+++ b/lib/user/database.php
@@ -155,7 +155,7 @@ class OC_User_Database extends OC_User_Backend {
* Get a list of all users.
*/
public function getUsers($search = '', $limit = null, $offset = null) {
- $query = OC_DB::prepare('SELECT `uid` FROM `*PREFIX*users` WHERE `uid` LIKE ? LIMIT',$limit,$offset);
+ $query = OC_DB::prepare('SELECT `uid` FROM `*PREFIX*users` WHERE `uid` LIKE ?',$limit,$offset);
$result = $query->execute(array($search.'%'));
$users = array();
while ($row = $result->fetchRow()) {