Author: david
Date: Tue Jul 31 08:01:36 2012
New Revision: 12016

Log:
Don't create blank level of description

Modified:
   trunk/lib/model/QubitInformationObject.php

Modified: trunk/lib/model/QubitInformationObject.php
==============================================================================
--- trunk/lib/model/QubitInformationObject.php  Tue Jul 31 00:02:02 2012        
(r12015)
+++ trunk/lib/model/QubitInformationObject.php  Tue Jul 31 08:01:36 2012        
(r12016)
@@ -1308,8 +1308,8 @@
 
   public function setLevelOfDescriptionByName($name)
   {
-    // don't proceed if the 'otherlevel' value is passed
-    if ($name !== 'otherlevel')
+    // don't proceed with empty $name, or if 'otherlevel' value is passed
+    if (0 < strlen($name) && $name !== 'otherlevel')
     {
       // see if Level of Description term already exists, if so link to it
       $criteria = new Criteria;

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to