diff --git a/web/skins/xml/views/Makefile.am b/web/skins/xml/views/Makefile.am index c79197386..ab9147ae4 100644 --- a/web/skins/xml/views/Makefile.am +++ b/web/skins/xml/views/Makefile.am @@ -7,4 +7,5 @@ webdir = @WEB_PREFIX@/skins/xml/views dist_web_DATA = \ console.php \ actions.php \ - none.php + none.php \ + notfound.png diff --git a/web/skins/xml/views/Makefile.in b/web/skins/xml/views/Makefile.in index c73b1d64c..da244c350 100644 --- a/web/skins/xml/views/Makefile.in +++ b/web/skins/xml/views/Makefile.in @@ -247,7 +247,8 @@ webdir = @WEB_PREFIX@/skins/xml/views dist_web_DATA = \ console.php \ actions.php \ - none.php + none.php \ + notfound.png all: all-recursive diff --git a/web/skins/xml/views/actions.php b/web/skins/xml/views/actions.php index 421c2dd9b..9e01b2d47 100644 --- a/web/skins/xml/views/actions.php +++ b/web/skins/xml/views/actions.php @@ -111,6 +111,9 @@ if (isset($_GET['action'])) { /* Suffix based on 'analyze' */ $fname = sprintf("%03d-%s.jpg", $frame, $suffix); $url = "./".ZM_DIR_EVENTS."/".getEventPath($event)."/".$fname; + if (!file_exists($url)) { + $url = "./skins/xml/views/notfound.png"; + } header("Location: ".$url); exit; diff --git a/web/skins/xml/views/notfound.png b/web/skins/xml/views/notfound.png new file mode 100644 index 000000000..219706897 Binary files /dev/null and b/web/skins/xml/views/notfound.png differ