Commit 02a10adc by pupi1985

Changed a few qa_db_read_all_values into qa_db_read_one_value

parent ed8194f6
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
Return whether there are any blobs whose content has been stored as a file on disk Return whether there are any blobs whose content has been stored as a file on disk
*/ */
{ {
return (bool) count(qa_db_read_all_values(qa_db_query_sub('SELECT blobid FROM ^blobs WHERE content IS NULL LIMIT 1'))); return qa_db_read_one_value(qa_db_query_sub('SELECT blobid FROM ^blobs WHERE content IS NULL LIMIT 1'), true) != null;
} }
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
Return whether there are any blobs whose content has been stored in the database Return whether there are any blobs whose content has been stored in the database
*/ */
{ {
return (bool) count(qa_db_read_all_values(qa_db_query_sub('SELECT blobid FROM ^blobs WHERE content IS NOT NULL LIMIT 1'))); return qa_db_read_one_value(qa_db_query_sub('SELECT blobid FROM ^blobs WHERE content IS NOT NULL LIMIT 1'), true) != null;
} }
...@@ -603,4 +603,4 @@ ...@@ -603,4 +603,4 @@
/* /*
Omit PHP closing tag to help avoid accidental output Omit PHP closing tag to help avoid accidental output
*/ */
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment