Skip to content

Commit

Permalink
Fix Cannot use a scalar value as an array
Browse files Browse the repository at this point in the history
  • Loading branch information
kormoc committed Apr 7, 2013
1 parent cda0364 commit 08b469b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/bindings/php/MythBackend.php
Expand Up @@ -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];
}

Expand Down

0 comments on commit 08b469b

Please sign in to comment.