Verified Commit b022c8ea authored by Jan Wennrich's avatar Jan Wennrich 🎓

fix: correctly return database results in media utils

parent c0dc8cc4
......@@ -843,7 +843,7 @@ class Utils
}
if (isset($result[0])) {
return intval($result[0]);
return intval($result[0]['id']);
}
return 0;
......@@ -877,7 +877,7 @@ class Utils
}
if (isset($result[0])) {
return intval($result[0]);
return intval($result[0]['id']);
}
return 0;
......
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