[Slim-Checkins] r11730 - /trunk/server/Slim/Web/HTTP.pm
dsully at svn.slimdevices.com
dsully at svn.slimdevices.com
Fri Apr 6 19:29:19 PDT 2007
Author: dsully
Date: Fri Apr 6 19:29:18 2007
New Revision: 11730
URL: http://svn.slimdevices.com?rev=11730&view=rev
Log:
Bug: N/A
Description: Fix a warning.
Modified:
trunk/server/Slim/Web/HTTP.pm
Modified: trunk/server/Slim/Web/HTTP.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Web/HTTP.pm?rev=11730&r1=11729&r2=11730&view=diff
==============================================================================
--- trunk/server/Slim/Web/HTTP.pm (original)
+++ trunk/server/Slim/Web/HTTP.pm Fri Apr 6 19:29:18 2007
@@ -2359,13 +2359,16 @@
open($template, $path);
- ($inode, $size, $mtime) = (stat($template))[1,7,9];
+
+ if ($template) {
+ ($inode, $size, $mtime) = (stat($template))[1,7,9];
+ }
# If we only want the file attributes and not the content - close the
# filehandle before slurping in the bits.
- if ($statOnly) {
-
- close $template if $template;
+ if ($statOnly && $template) {
+
+ close $template;
} elsif ($template) {
More information about the checkins
mailing list