Commit 6cb75dff authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Removed unused var spotted by sonar

parent 095e51d4
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
* The functions need to be handled with care, because they are not as strict * The functions need to be handled with care, because they are not as strict
* as one might expect. * as one might expect.
*/ */
class tests { class tests
{
/*! /*!
* \brief Test if the given string is a phone number * \brief Test if the given string is a phone number
* *
...@@ -292,7 +292,7 @@ class tests { ...@@ -292,7 +292,7 @@ class tests {
{ {
global $config; global $config;
$reservedNames = array(); $reservedNames = array();
foreach ($config->data['OBJECTS'] as $type => $infos) { foreach ($config->data['OBJECTS'] as $infos) {
if (isset($infos['ou'])) { if (isset($infos['ou'])) {
if ($infos['ou'] != '') { if ($infos['ou'] != '') {
if (preg_match('/ou=([^,]+),$/', $infos['ou'], $m)) { if (preg_match('/ou=([^,]+),$/', $infos['ou'], $m)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment