Fixed warning

This commit is contained in:
Maximilian Giller 2020-12-30 22:51:05 +01:00
parent 4010d8fbd0
commit 2dbf32cd9e

View file

@ -201,7 +201,7 @@ class DbOperations
function innerJoin(string $table, string $externAttribute, string $internAttribute = "", string $internTable = "") function innerJoin(string $table, string $externAttribute, string $internAttribute = "", string $internTable = "")
{ {
if ($internTable === "") { if ($internTable === "") {
$internTable = substr($this->table, sizeof($this->tablePrefix)); $internTable = substr($this->table, strlen($this->tablePrefix));
} }
if ($internAttribute === "") { if ($internAttribute === "") {
$internAttribute = $externAttribute; $internAttribute = $externAttribute;