More silly ternary true : false fixes
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 9 May 2011 20:49:19 +0000 (20:49 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 9 May 2011 20:49:19 +0000 (20:49 +0000)
includes/db/DatabaseMssql.php
maintenance/fuzz-tester.php

index 1bc20ee..d8452f9 100644 (file)
@@ -1046,7 +1046,7 @@ class MssqlField implements Field {
                $this->tablename = $info['TABLE_NAME'];
                $this->default = $info['COLUMN_DEFAULT'];
                $this->max_length = $info['CHARACTER_MAXIMUM_LENGTH'];
-               $this->nullable = ( strtolower( $info['IS_NULLABLE'] ) == 'no' ) ? false:true;
+               $this->nullable = !( strtolower( $info['IS_NULLABLE'] ) == 'no' );
                $this->type = $info['DATA_TYPE'];
        }
 
index 124b017..1d8ceec 100644 (file)
@@ -2472,7 +2472,7 @@ function validateHTML( $text ) {
 
        curl_close ( $ch );
 
-       $valid = ( strpos( $result, "Failed validation" ) === false ? true : false );
+       $valid = ( strpos( $result, "Failed validation" ) === false );
 
        return array( $valid, $result );
 }