diff --git a/symphony/src/Proethos2/CoreBundle/Util/Util.php b/symphony/src/Proethos2/CoreBundle/Util/Util.php index b0b7b7e4..30dcdfd3 100644 --- a/symphony/src/Proethos2/CoreBundle/Util/Util.php +++ b/symphony/src/Proethos2/CoreBundle/Util/Util.php @@ -37,7 +37,7 @@ public function getConfiguration($key) { if($configuration and !empty($configuration->getValue())) { $value = $configuration->getValue(); - $committee_contact = explode("\n", $value); + $committee_contact = preg_split('/\r\n|\r|\n/', $value); if( $committee_contact && count($committee_contact) == 2 ) { return $committee_contact[1]; @@ -56,7 +56,7 @@ public function getConfiguration($key) { if($configuration and !empty($configuration->getValue())) { if ( 'committee.email' == $key ) { $value = $configuration->getValue(); - $committee_email = explode("\n", $value); + $committee_email = preg_split('/\r\n|\r|\n/', $value); if( $committee_email ) { return $committee_email[0];