Adding missing $now variable.
Fixing PHP warning

ref 9648c1f1f7fa79930d30adfc426a93964efd7aa7