[icinga-checkins] icinga.org: icingaweb2/master: MonitoringBackend: fix variable name in exception

git at icinga.org git at icinga.org
Tue Nov 11 17:42:09 CET 2014


Module: icingaweb2
Branch: master
Commit: 78fd5109ac2fe4ed2664e8b6ca6abe4afaa06e7a
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=78fd5109ac2fe4ed2664e8b6ca6abe4afaa06e7a

Author: Thomas Gelf <thomas at gelf.net>
Date:   Tue Nov 11 17:23:49 2014 +0100

MonitoringBackend: fix variable name in exception

refs #7635

---

 .../monitoring/library/Monitoring/Backend/MonitoringBackend.php    |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php b/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php
index 697ff19..4de5f1d 100644
--- a/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php
+++ b/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php
@@ -73,7 +73,7 @@ class MonitoringBackend implements Selectable, Queryable, ConnectionInterface
                 )
             );
 
-            if (! class_exists($class)) {
+            if (!class_exists($class)) {
                 throw new ConfigurationError(
                     mt('monitoring', 'There is no "%s" monitoring backend'),
                     $class
@@ -256,7 +256,7 @@ class MonitoringBackend implements Selectable, Queryable, ConnectionInterface
         if (!class_exists($class)) {
             throw new ProgrammingError(
                 'DataView %s does not exist',
-                ucfirst($viewName)
+                ucfirst($view)
             );
         }
         return $class;



More information about the icinga-checkins mailing list