Commit 413716b6 authored by Clément Démoulins's avatar Clément Démoulins
Browse files

Fix PHP notice about undefined variable.

parent 7ef35501
......@@ -3,11 +3,12 @@
// Handle program errors.
//
function handle_errors($retval, $output = "")
function handle_errors($retval, $output = array())
{
if ($retval != 0)
{
echo $output[0];
if ($output != "" && $output != array())
echo $output[0];
switch($retval)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment