Permalink
Browse files

Fix Cannot use a scalar value as an array

  • Loading branch information...
1 parent cda0364 commit 08b469b099ef860569212f6e0afc8341e8737941 @kormoc kormoc committed Apr 7, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 mythtv/bindings/php/MythBackend.php
View
4 mythtv/bindings/php/MythBackend.php
@@ -41,9 +41,13 @@ static function find($host = null, $port = null) {
."need to check your mythweb.conf file or re-run mythtv-setup",
FATAL);
}
+
+ if (!isset($Backend[$host]))
+ $Backend[$host] = array();
if (!isset($Backend[$host][$port]))
$Backend[$host][$port] = new MythBackend($host, $port);
+
return $Backend[$host][$port];
}

0 comments on commit 08b469b

Please sign in to comment.