From f82a605eba249eff8c47cf0281477cf85197e71a Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 9 May 2011 20:49:19 +0000 Subject: [PATCH] More silly ternary true : false fixes --- includes/db/DatabaseMssql.php | 2 +- maintenance/fuzz-tester.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/db/DatabaseMssql.php b/includes/db/DatabaseMssql.php index 1bc20eea37..d8452f9749 100644 --- a/includes/db/DatabaseMssql.php +++ b/includes/db/DatabaseMssql.php @@ -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']; } diff --git a/maintenance/fuzz-tester.php b/maintenance/fuzz-tester.php index 124b017177..1d8ceec36f 100644 --- a/maintenance/fuzz-tester.php +++ b/maintenance/fuzz-tester.php @@ -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 ); } -- 2.20.1