Revision: 2282
http://mrbs.svn.sourceforge.net/mrbs/?rev=2282&view=rev
Author: cimorrison
Date: 2012-04-08 16:49:41 +0000 (Sun, 08 Apr 2012)
Log Message:
-----------
Fixed bug causing an entry of '0' in a mandatory custom field to be rejected.
Modified Paths:
--------------
mrbs/trunk/web/edit_entry_handler.php
Modified: mrbs/trunk/web/edit_entry_handler.php
===================================================================
--- mrbs/trunk/web/edit_entry_handler.php 2012-04-08 16:16:07 UTC (rev
2281)
+++ mrbs/trunk/web/edit_entry_handler.php 2012-04-08 16:49:41 UTC (rev
2282)
@@ -379,7 +379,7 @@
foreach ($is_mandatory_field as $field => $value)
{
$field = preg_replace('/^entry\./', '', $field);
- if ($value && array_key_exists($field, $custom_fields) &&
($custom_fields[$field] == ''))
+ if ($value && array_key_exists($field, $custom_fields) &&
($custom_fields[$field] === ''))
{
print_header($day, $month, $year, $area, isset($room) ? $room : "");
?>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits