Ternary operator could be simplified.

This commit is contained in:
Yuriy Pikhtarev 2017-05-05 00:56:01 +03:00
commit 57f0cd7614
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
4 changed files with 5 additions and 5 deletions

View file

@ -259,7 +259,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;
}
/**