Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only copy bumps if they exists.

  • Loading branch information...
commit 982e985c19c1cbaaf9ae8b74e05bfc5cab2d1716 1 parent 1d81aaf
Stefan de Konink skinkie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  broadcast.php
2  broadcast.php
View
@@ -133,8 +133,8 @@
if (defined('BUMPDURATION') && $current_cat != $image['category']) {
$current_cat = $image['category'];
$bump = $image['category'].'.png';
- exec('cp "'.USER_IMAGEDIR.'/'.$bump.'" "'.$tmpdirectory.'/'.$bump.'"');
if (file_exists(USER_IMAGEDIR.'/'.$bump)) {
+ exec('cp "'.USER_IMAGEDIR.'/'.$bump.'" "'.$tmpdirectory.'/'.$bump.'"');
fputs($fp, ' <img src="'.REMOTEDIR.'/cache/'.$bump.'" alt="'.htmlspecialchars('Bump - '.$image['category'], ENT_QUOTES, 'UTF-8').'" dur="'.BUMPDURATION.'s" region="content" fill="remove" erase="whenDone" />'.chr(13).chr(10));
}
Please sign in to comment.
Something went wrong with that request. Please try again.