git.cweiske.de
/
noxon-gateway.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e8170b
)
Catch mediatomb browse errors
author
Christian Weiske
<
[email protected]
>
Tue, 19 Dec 2017 20:17:56 +0000
(21:17 +0100)
committer
Christian Weiske
<
[email protected]
>
Tue, 19 Dec 2017 20:17:56 +0000
(21:17 +0100)
src/mediatomb.php
patch
|
blob
|
history
diff --git
a/src/mediatomb.php
b/src/mediatomb.php
index 96be27c0114ba8c5bd75cf79c909b5e120fa7f68..33b9bd87305fbeedf076e65d341c4a3cbd72223e 100644
(file)
--- a/
src/mediatomb.php
+++ b/
src/mediatomb.php
@@
-25,6
+25,11
@@
function mediatombBrowse(Services_MediaTomb $smt, $fullPath, $prefix)
$path = substr($fullPath, strlen($prefix));
$container = $smt->getContainerByPath($path);
+ if ($container === null) {
+ sendMessage('Error accessing ' . $fullPath);
+ return;
+ }
+
$listItems = array();
$it = $container->getItemIterator(false);