Преглед изворни кода

Issue #155 : correction fonction _nbNotRead

intval renvoyant toujours un integer, le test is_int() passait toujours,
c'est corrigé maintenant
Marien Fressinaud пре 12 година
родитељ
комит
e19695e14b
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      app/models/Feed.php

+ 4 - 3
app/models/Feed.php

@@ -167,11 +167,12 @@ class Feed extends Model {
 		}
 		$this->keep_history = $value;
 	}
-	public function _nbNotRead ($value) {	//Alex
-		if (!is_int (intval ($value))) {
+	public function _nbNotRead ($value) {
+		if (!is_int ($value)) {
 			$value = -1;
 		}
-		$this->nbNotRead = $value;
+
+		$this->nbNotRead = intval ($value);
 	}
 
 	public function load () {