Ternary operator could be simplified.

(cherry picked from commit 57f0cd7)
This commit is contained in:
Yuriy Pikhtarev 2017-05-05 00:56:01 +03:00 committed by Vasily Komrakov
commit 02a06e68c9
No known key found for this signature in database
GPG key ID: 558236680C20A69A
3 changed files with 3 additions and 3 deletions

View file

@ -253,7 +253,7 @@ function physical_filename_already_stored($filename)
$num_rows = DB()->num_rows($result);
DB()->sql_freeresult($result);
return ($num_rows == 0) ? false : true;
return $num_rows != 0;
}
/**