2009-10-01 Miguel de Dios <miguel.dedios@artica.es>

* pandora_console/godmode/alerts/alert_list.php: fix small bug that throw
	notice message for a array uninitialize.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1997 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-10-01 19:13:43 +00:00
parent 8790fd3070
commit 6a869a83c9
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-10-01 Miguel de Dios <miguel.dedios@artica.es>
* pandora_console/godmode/alerts/alert_list.php: fix small bug that throw
notice message for a array uninitialize.
2009-09-30 Sancho Lerena <slerena@artica.es>
* pandora_console.spec: Updated spec for a more complete uninstall.

View File

@ -238,8 +238,10 @@ echo "<div id='alert_control' style='display:none'>\n";
echo "<tr>\n";
$temp = get_db_all_rows_sql("SELECT id, name FROM talert_actions;");
$arrayActions = array();
foreach ($temp as $actionElement) {
$arrayActions[$actionElement['id']] = $actionElement['name'];
if (is_array($temp)) {
foreach ($temp as $actionElement) {
$arrayActions[$actionElement['id']] = $actionElement['name'];
}
}
echo "<td>".__('Actions')."</td><td>";
print_select ($arrayActions, "action_id", $actionID, '', __('All'),-1);