Skip to content

Commit b2b6ac2

Browse files
committed
Merge pull request a1phanumeric#9 from neurotroph/patch-1
BOOM! Fastest merge in the west!
2 parents f9493a8 + 7fca679 commit b2b6ac2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

class.MySQL.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/*
33
* Copyright (C) 2012
44
* Ed Rackham (http://github.com/a1phanumeric/PHP-MySQL-Class)
5+
* Changes to Version 0.8.1 copyright (C) 2013
6+
* Christopher Harms (http://github.com/neurotroph)
57
*
68
* This program is free software: you can redistribute it and/or modify
79
* it under the terms of the GNU General Public License as published by
@@ -17,7 +19,7 @@
1719
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1820
*/
1921

20-
// MySQL Class v0.8
22+
// MySQL Class v0.8.1
2123
class MySQL {
2224

2325
// Base variables
@@ -213,7 +215,7 @@ function Select($from, $where='', $orderBy='', $limit='', $like=false, $operand=
213215
}
214216
}
215217

216-
$query = substr($query, 0, -5);
218+
$query = substr($query, 0, -(strlen($operand)+2);
217219

218220
}else{
219221
$query = substr($query, 0, -7);

0 commit comments

Comments
 (0)