Fix variable not always being defined.

This commit is contained in:
josh4trunks 2014-06-04 23:03:13 -07:00
parent e77c9bb97e
commit ea162c8a39

View file

@ -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;