diff --git path_redirect.module path_redirect.module
index dd4d547..1626c0c 100644
--- path_redirect.module
+++ path_redirect.module
@@ -150,7 +150,7 @@ function path_redirect_goto($redirect = NULL) {
  */
 function path_redirect_cron() {
   // Purge inactive redirects from the database.
-  if ($purge = variable_get('path_redirect_purge_inactive', 0)) {
+  if (($purge = variable_get('path_redirect_purge_inactive', 0)) > 0) {
     $query = db_query("SELECT rid FROM {path_redirect} WHERE last_used < %d", time() - $purge);
     $rids = array();
     while ($rid = db_result($query)) {
