Fix PhanPluginRedundantAssignment

This commit is contained in:
MDW 2024-03-13 00:28:58 +01:00
parent 22bd4d8774
commit 5ab895f31c
No known key found for this signature in database

View file

@ -12,6 +12,7 @@
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2023 Benjamin Falière <benjamin.faliere@altairis.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -1009,7 +1010,7 @@ class Categorie extends CommonObject
$nbtotalofrecords = $this->db->num_rows($result);
if (($page * $limit) > $nbtotalofrecords) { // if total resultset is smaller then paging size (filtering), goto and load page 0
$page = 0;
$offset = 0;
$offset = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
}
}