Passed
Push — master ( 203205...71f14f )
by Anthony
04:02
created
core/auth/Connexion.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,9 @@
 block discarded – undo
177 177
 			$dbc = App::getDb();
178 178
 			$query = $dbc->select("last_change_mdp")->from("identite")->where("ID_identite", "=", $id_identite)->get();
179 179
 			if ((is_array($query)) && (count($query) > 0)) {
180
-				foreach ($query as $obj) return $obj->last_change_mdp;
180
+				foreach ($query as $obj) {
181
+					return $obj->last_change_mdp;
182
+				}
181 183
 			}
182 184
 		}
183 185
 
Please login to merge, or discard this patch.