mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed static analysis issue
This commit is contained in:
parent
1825080d9e
commit
bc37d11f13
1 changed files with 1 additions and 1 deletions
|
@ -89,9 +89,9 @@ class KiCadHelper
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @var $category Category */
|
|
||||||
//Ensure that the category contains parts
|
//Ensure that the category contains parts
|
||||||
//For the last level, we need to use a recursive query, otherwise we can use a simple query
|
//For the last level, we need to use a recursive query, otherwise we can use a simple query
|
||||||
|
/** @var Category $category */
|
||||||
$parts_count = $category->getLevel() >= $this->category_depth ? $repo->getPartsCountRecursive($category) : $repo->getPartsCount($category);
|
$parts_count = $category->getLevel() >= $this->category_depth ? $repo->getPartsCountRecursive($category) : $repo->getPartsCount($category);
|
||||||
|
|
||||||
if ($parts_count < 1) {
|
if ($parts_count < 1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue