Replace !! with explicit operations.
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 1 Jul 2005 05:28:07 +0000 (05:28 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 1 Jul 2005 05:28:07 +0000 (05:28 +0000)
includes/Database.php
includes/RecentChange.php

index 2b7827a..375756f 100644 (file)
@@ -232,7 +232,7 @@ class Database {
                        }
                } else {
                        # Delay USE query
-                       $success = !!$this->mConn;
+                       $success = (bool)$this->mConn;
                }
                
                if ( !$success ) {
@@ -620,7 +620,7 @@ class Database {
                $table = $this->tableName( $table );
                $sql = "UPDATE $table SET $var = '" .
                  $this->strencode( $value ) . "' WHERE ($cond)";
-               return !!$this->query( $sql, DB_MASTER, $fname );
+               return (bool)$this->query( $sql, DB_MASTER, $fname );
        }
        
        /**
@@ -923,7 +923,7 @@ class Database {
                } else {
                        $sql .= '(' . $this->makeList( $a ) . ')';
                }
-               return !!$this->query( $sql, $fname );
+               return (bool)$this->query( $sql, $fname );
        }
 
        /**
index 41f81fe..7e1c90f 100644 (file)
@@ -369,7 +369,7 @@ class RecentChange
                        'rc_namespace' => $row->page_namespace,
                        'rc_title' => $row->page_title,
                        'rc_comment' => $row->rev_comment,
-                       'rc_minor' => !!$row->rev_minor_edit,
+                       'rc_minor' => $row->rev_minor_edit ? 1 : 0,
                        'rc_type' => $row->page_is_new ? RC_NEW : RC_EDIT,
                        'rc_cur_id' => $row->page_id,
                        'rc_this_oldid' => (int)$row->rev_id,