Commit 2ddfbacc authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't try to calculate quota for files with no owner (bug 3378)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 09fee653
......@@ -2112,7 +2112,7 @@ function tags_sideblock() {
* has caused the quota count to get out of sync
*/
function recalculate_quota() {
if (!$artefacts = get_records_array('artefact', '', '', '', 'id, artefacttype, owner')) {
if (!$artefacts = get_records_select_array('artefact', 'owner IS NOT NULL', null, '', 'id, artefacttype, owner')) {
// Nothing to do
return;
}
......
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