]> git.mxchange.org Git - friendica.git/blobdiff - include/cron.php
Merge pull request #2887 from annando/1611-api-performance
[friendica.git] / include / cron.php
index c03745a4429e0d38bb1502e433ede5f0b3a516d0..2c27e9f9924fa5f7c729734f90fb46528a40d747 100644 (file)
@@ -11,6 +11,7 @@ if (!file_exists("boot.php") AND (sizeof($_SERVER["argv"]) != 0)) {
 }
 
 require_once("boot.php");
+require_once("include/photos.php");
 
 
 function cron_run(&$argv, &$argc){
@@ -162,8 +163,9 @@ function cron_run(&$argv, &$argc){
  */
 function cron_update_photo_albums() {
        $r = q("SELECT `uid` FROM `user` WHERE NOT `account_expired` AND NOT `account_removed`");
-       if (!dbm::is_result($r))
+       if (!dbm::is_result($r)) {
                return;
+       }
 
        foreach ($r AS $user) {
                photo_albums($user['uid'], true);