Fix variable not always being defined.
This commit is contained in:
parent
e77c9bb97e
commit
ea162c8a39
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ class OC_DB {
|
|||
list($host, $port)=explode(':', $host, 2);
|
||||
if(!is_int($port)||$port<1||$port>65535) {
|
||||
$socket=true;
|
||||
} else {
|
||||
$socket=false;
|
||||
}
|
||||
} else {
|
||||
$port=false;
|
||||
|
|
Loading…
Reference in a new issue