Skip to content

Commit

Permalink
WIP: Dolibarr V20 Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPixxel committed Dec 6, 2024
1 parent 7df273b commit e01905d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splash/src/Services/UnitConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public static function normalizeDimension(?float $length, array $dimensions): Ar
$dimensions = array_filter($dimensions);
//====================================================================//
// Find Min Dimensions
$minDimension = (float) min($dimensions);
$minDimension = !empty($dimensions) ? (float) min($dimensions) : 0.0;
//====================================================================//
// Convert Min Dimension to get Minimal Unit
$minResult = self::normalizeLength($minDimension);
Expand Down

0 comments on commit e01905d

Please sign in to comment.