[vhffs-dev] [1207] Fixed visibility regexp

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1207
Author:   gradator
Date:     2008-05-24 20:31:32 +0200 (Sat, 24 May 2008)

Log Message:
-----------
Fixed visibility regexp

Modified Paths:
--------------
    trunk/vhffs-panel/admin/tag/category/edit.pl


Modified: trunk/vhffs-panel/admin/tag/category/edit.pl
===================================================================
--- trunk/vhffs-panel/admin/tag/category/edit.pl	2008-05-24 18:20:00 UTC (rev 1206)
+++ trunk/vhffs-panel/admin/tag/category/edit.pl	2008-05-24 18:31:32 UTC (rev 1207)
@@ -114,7 +114,7 @@
 		$panel->add_error( gettext('You have to enter a description') );
 	}
 	
-	if($visibility !~ /^[1-3]$/) {
+	if($visibility !~ /^\d+$/) {
 		$panel->add_error( gettext('Invalid visibility') );
 	}
 	
@@ -129,4 +129,4 @@
 	$category->{updated} = time();
 	$category->{updater_id} = $user->get_uid;
 	return $category->save();
-}
\ No newline at end of file
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/