mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
DbRepository: Function type()
does not exist, it should be called gettype()
This commit is contained in:
parent
d24cd0bf09
commit
bdddb88164
@ -298,7 +298,7 @@ abstract class DbRepository extends Repository implements Extensible, Updatable,
|
|||||||
} elseif (is_string($table)) {
|
} elseif (is_string($table)) {
|
||||||
$table = (strpos($table, $prefix) === false ? $prefix : '') . $table;
|
$table = (strpos($table, $prefix) === false ? $prefix : '') . $table;
|
||||||
} else {
|
} else {
|
||||||
throw new IcingaException('Table prefix handling for type "%s" is not supported', type($table));
|
throw new IcingaException('Table prefix handling for type "%s" is not supported', gettype($table));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $table;
|
return $table;
|
||||||
@ -331,7 +331,7 @@ abstract class DbRepository extends Repository implements Extensible, Updatable,
|
|||||||
$table = str_replace($prefix, '', $table);
|
$table = str_replace($prefix, '', $table);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new IcingaException('Table prefix handling for type "%s" is not supported', type($table));
|
throw new IcingaException('Table prefix handling for type "%s" is not supported', gettype($table));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $table;
|
return $table;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user