summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/graphics.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-01-19 21:41:45 -0800
committerBharat Mediratta <bharat@menalto.com>2013-01-19 21:41:45 -0800
commitf215a417f1604f3831dc1a2c15818f496c9609b3 (patch)
tree3f1fba9d60e88f20a2e4740b91ec3c5000ace7fc /modules/gallery/helpers/graphics.php
parent79acf3abe8b3ab55b084e9c2ff2624d5ad7971e6 (diff)
parentea8219e1d462362985b526260cd71230a5db2afb (diff)
Merge pull request #88 from shadlaws/fix_1941
#1941, 1948 - Fix possible warnings in movie and graphics helpers, add functions to convert between seconds and hh:mm:ss.dd (and their unit tests).
Diffstat (limited to 'modules/gallery/helpers/graphics.php')
-rw-r--r--modules/gallery/helpers/graphics.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/graphics.php b/modules/gallery/helpers/graphics.php
index e7c5da68..c840b920 100644
--- a/modules/gallery/helpers/graphics.php
+++ b/modules/gallery/helpers/graphics.php
@@ -157,7 +157,7 @@ class graphics_Core {
if ($input_item->is_movie()) {
// Convert the movie filename to a JPG first, delete anything that might already be there
$output_file = legal_file::change_extension($output_file, "jpg");
- unlink($output_file);
+ @unlink($output_file);
// Run movie_extract_frame events, which can either:
// - generate an output file, bypassing the ffmpeg-based movie::extract_frame
// - add to the options sent to movie::extract_frame (e.g. change frame extract time,