summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-08-07 18:16:34 +0200
committerBart Visscher <bartv@thisnet.nl>2013-08-07 18:17:37 +0200
commit2cc94cbc7387a7cd15803c8e3b4d450f05e7b041 (patch)
treec8058387d44fe008440beb61ebb43a8acac23171 /lib/db.php
parent95a959b10b7c9dc7b0529fbb7b05c11685f19e8b (diff)
downloadnextcloud-server-2cc94cbc7387a7cd15803c8e3b4d450f05e7b041.tar.gz
nextcloud-server-2cc94cbc7387a7cd15803c8e3b4d450f05e7b041.zip
Style fixes
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/db.php b/lib/db.php
index 2b6cd59366a..d004d491efb 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -249,7 +249,7 @@ class OC_DB {
static public function executeAudited( $stmt, array $parameters = null) {
if (is_string($stmt)) {
// convert to an array with 'sql'
- if (stripos($stmt,'LIMIT') !== false) { //OFFSET requires LIMIT, se we only neet to check for LIMIT
+ if (stripos($stmt, 'LIMIT') !== false) { //OFFSET requires LIMIT, so we only need to check for LIMIT
// TODO try to convert LIMIT OFFSET notation to parameters, see fixLimitClauseForMSSQL
$message = 'LIMIT and OFFSET are forbidden for portability reasons,'
. ' pass an array with \'limit\' and \'offset\' instead';
@@ -257,7 +257,7 @@ class OC_DB {
}
$stmt = array('sql' => $stmt, 'limit' => null, 'offset' => null);
}
- if (is_array($stmt)){
+ if (is_array($stmt)) {
// convert to prepared statement
if ( ! array_key_exists('sql', $stmt) ) {
$message = 'statement array must at least contain key \'sql\'';