Author: david
Date: Mon Nov 21 11:31:02 2011
New Revision: 10343
Log:
Ignore empty subject access points (like r10342)
Modified:
trunk/lib/QubitCsvImport.class.php
Modified: trunk/lib/QubitCsvImport.class.php
==============================================================================
--- trunk/lib/QubitCsvImport.class.php Mon Nov 21 11:29:34 2011 (r10342)
+++ trunk/lib/QubitCsvImport.class.php Mon Nov 21 11:31:02 2011 (r10343)
@@ -317,6 +317,11 @@
$n = 0;
foreach (explode('|', $parameters['subjectAccessPoints']) as
$new_subjectAccessPoint)
{
+ if (0 == strlen($new_subjectAccessPoint))
+ {
+ continue;
+ }
+
// if the subject does not exist, create it
if (!in_array($new_subjectAccessPoint, $this->subjects) &&
!empty($new_subjectAccessPoint))
{
--
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.