Your Name 3 lat temu
rodzic
commit
a3eaa7c667
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      tool/clue/lib/Info.php

+ 3 - 1
tool/clue/lib/Info.php

@@ -64,7 +64,9 @@ Class Info
 		$where['userset_id'] = Dever::param('userset_id',$data);
 		$info = Dever::db('clue/info')->find($id);
 		$where['where_id'] = $id;
-
+		if (!$info['day'] || $info['day'] <=0) {
+			$where['day'] = time();
+		}
 		if ($where['status_id'] == 1) {
 				$where['type'] = 1;
 			} elseif ($where['status_id'] == 2) {