Commit 2676adfb authored by Etienne CHAMPETIER's avatar Etienne CHAMPETIER

ZP-795 hhvm fix: GetCutOffDate in utils.php.

Released under the Affero GNU General Public License (AGPL) version 3.

(hhvm/hack complains with the isset)
parent 0478a71c
...@@ -337,14 +337,10 @@ class Utils { ...@@ -337,14 +337,10 @@ class Utils {
$back = 60 * 60 * 24 * 31 * 6; $back = 60 * 60 * 24 * 31 * 6;
break; break;
default: default:
break; return 0; // unlimited
} }
if(isset($back)) { return time() - $back;
$date = time() - $back;
return $date;
} else
return 0; // unlimited
} }
/** /**
......
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