comparison contrib/web/php-admin/htdocs/edit.php @ 733:d03fae037eb4

Avoid a warning about using a string as an array in php-admin
author Ben Schmidt
date Sat, 31 Jul 2010 00:29:09 +1000
parents d92234debf5c
children 73c8715367fb
comparison
equal deleted inserted replaced
732:b37f66e0852b 733:d03fae037eb4
52 52
53 $file = $topdir."/".$list."/control/".$name; 53 $file = $topdir."/".$list."/control/".$name;
54 $value = ""; 54 $value = "";
55 55
56 if(!is_file($file)) 56 if(!is_file($file))
57 $lines = ""; 57 $lines = array("");
58 else 58 else
59 $lines = file($file); 59 $lines = file($file);
60 60
61 $value = $lines[0]; 61 $value = $lines[0];
62 62