afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-07-19 07:35 am

[dw-free] Webserver error logs

[commit: http://hg.dwscoalition.org/dw-free/rev/af27432f0c0f]

http://bugs.dwscoalition.org/show_bug.cgi?id=548

Check that we didn't pass in null args.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/MemCache.pm
--------------------------------------------------------------------------------
diff -r 4109284ad4a6 -r af27432f0c0f cgi-bin/LJ/MemCache.pm
--- a/cgi-bin/LJ/MemCache.pm	Sun Jul 19 07:26:44 2009 +0000
+++ b/cgi-bin/LJ/MemCache.pm	Sun Jul 19 07:34:30 2009 +0000
@@ -121,7 +121,7 @@ sub get       {
     $memc->get(@_);
 }
 sub get_multi {
-    return {} if $GET_DISABLED;
+    return {} if $GET_DISABLED || ! @_;
     $memc->get_multi(@_);
 }
 
--------------------------------------------------------------------------------