Extensions - Add: Validate array to mitigate warning.

This commit is contained in:
Nate
2020-02-17 08:43:59 -07:00
parent a38aada36f
commit 9ec85741fa

View File

@@ -622,7 +622,7 @@
$row_style["1"] = "row_style1";
//show the action and redirect the user
if (count($generated_users) == 0) {
if (!is_array($generated_users) || count($generated_users) == 0) {
//action add
header("Location: extension_edit.php?id=".$extension_uuid);
}