kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2010-11-23 05:08 am

[dw-free] Memcache clear tool

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

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

Fix development warning for uninitialized value.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/DW/Template/VMethods.pm
--------------------------------------------------------------------------------
diff -r 594fdeb44253 -r 58c2d1198c9f cgi-bin/DW/Template/VMethods.pm
--- a/cgi-bin/DW/Template/VMethods.pm	Mon Nov 22 18:03:50 2010 +0800
+++ b/cgi-bin/DW/Template/VMethods.pm	Mon Nov 22 23:08:43 2010 -0600
@@ -29,7 +29,7 @@ my $sort_subs = {
     my @r = ();
     my $sb = $sort_subs->{ $type || 'alpha' };
 
-    if ( $type eq 'order' ) {
+    if ( $type && $type eq 'order' ) {
         my ( $v_type, $o_ky ) = @rest;
         $o_ky ||= 'order';
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org