fixed chart error handler.

This commit is contained in:
Martynas Mickevicius
2010-07-09 16:16:22 +03:00
parent 7eedd0387d
commit 08e048b307

View File

@@ -213,9 +213,14 @@ function PMA_chart_results($data, &$chartSettings)
return $chartCode; return $chartCode;
} }
/*
* Simple handler of chart errors.
*/
function PMA_handle_chart_err($errors) function PMA_handle_chart_err($errors)
{ {
if (!empty($errors)) {
PMA_warnMissingExtension('GD', false, 'GD extension is needed for charts.'); PMA_warnMissingExtension('GD', false, 'GD extension is needed for charts.');
} }
}
?> ?>