From: Brion Vibber Date: Fri, 1 Jul 2005 05:28:07 +0000 (+0000) Subject: Replace !! with explicit operations. X-Git-Tag: 1.5.0beta2~111 X-Git-Url: http://git.cyclocoop.org/geomaker.php?a=commitdiff_plain;h=e074e99c8a7deed396d8d2aa56233a1e5ceb8a02;p=lhc%2Fweb%2Fwiklou.git Replace !! with explicit operations. --- diff --git a/includes/Database.php b/includes/Database.php index 2b7827a7e8..375756facf 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -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 ); } /** diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 41f81fe3e6..7e1c90f2ad 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -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,