X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fexpire.php;h=a7b561bf0cdf47cad3750213a294496a366da960;hb=660bd39efad52b1c69bd8dd0ca27141b81f84ca5;hp=a73272a2efd93b47824ebc75526c956dca95d934;hpb=e75f88d7fe964b5ff1a51867c8168cc1f7e3eed8;p=friendica.git diff --git a/include/expire.php b/include/expire.php index a73272a2ef..a7b561bf0c 100644 --- a/include/expire.php +++ b/include/expire.php @@ -8,7 +8,7 @@ function expire_run(&$argv, &$argc){ if(is_null($a)) { $a = new App; } - + if(is_null($db)) { @include(".htconfig.php"); require_once("include/dba.php"); @@ -38,7 +38,7 @@ function expire_run(&$argv, &$argc){ q("optimize table item"); logger('expire: start'); - + $r = q("SELECT `uid`,`username`,`expire` FROM `user` WHERE `expire` != 0"); if(count($r)) { foreach($r as $rr) { @@ -47,6 +47,10 @@ function expire_run(&$argv, &$argc){ } } + load_hooks(); + + call_hooks('expire'); + return; }