* Formattingofcondensedcode
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 21 Jul 2005 21:05:02 +0000 (21:05 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 21 Jul 2005 21:05:02 +0000 (21:05 +0000)
includes/Database.php

index ead81b0..16f277e 100644 (file)
@@ -996,9 +996,9 @@ class Database {
                                $list .= $field." IN (".$this->makeList($value).") ";
                        } else {
                                if ( $mode == LIST_AND || $mode == LIST_SET ) {
-                                       $list .= $field.'=';
+                                       $list .= "$field = ";
                                }
-                               $list .= ($mode==LIST_NAMES?$value:$this->addQuotes( $value ));
+                               $list .= $mode == LIST_NAMES ? $value : $this->addQuotes( $value );
                        }
                }
                return $list;