suppress notices that might be confusing
This commit is contained in:
parent
f9aaa03036
commit
200d973581
@ -33,7 +33,7 @@ function parse_htconfig($file) {
|
|||||||
function get_configtype(array $data) {
|
function get_configtype(array $data) {
|
||||||
if(!isset($data['host'], $data['user'], $data['pass'], $data['data']))
|
if(!isset($data['host'], $data['user'], $data['pass'], $data['data']))
|
||||||
return 'none';
|
return 'none';
|
||||||
if($data['type'] == 1)
|
if(@$data['type'] == 1)
|
||||||
return 'pgsql';
|
return 'pgsql';
|
||||||
return 'mysql';
|
return 'mysql';
|
||||||
}
|
}
|
||||||
@ -112,7 +112,7 @@ foreach(array('install','include','mod','view') as $dir) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$cfgfile = '.htconfig.php';
|
$cfgfile = '.htconfig.php';
|
||||||
if($argv[1] == '--resume') {
|
if($argc >= 2 && $argv[1] == '--resume') {
|
||||||
if($argc < 4) {
|
if($argc < 4) {
|
||||||
echo "Resume usage {$argv[0]} --resume <table> <row>\n";
|
echo "Resume usage {$argv[0]} --resume <table> <row>\n";
|
||||||
exit();
|
exit();
|
||||||
|
Reference in New Issue
Block a user