itilsolution.class.php.patch

tsmr, 04/08/2021 03:36 PM

Download (999 Bytes)

View differences:

itilsolution.class.php (working copy)
289 289
         $item = $params['item'];
290 290
         if ($item->getType() == 'ITILSolution') {
291 291
            $warnings = self::checkWarnings($params);
292
            if (count($warnings)) {
292
            if (count($warnings) > 0) {
293 293
               echo "<div class='warning' style='display: flow-root;'>";
294 294
               echo "<i class='fa fa-exclamation-triangle fa-5x'></i>";
295 295
               echo "<ul><li>" . implode('</li><li>', $warnings) . "</li></ul>";
......
314 314
         $item = $params['item'];
315 315
         if ($item->getType() == 'ITILSolution') {
316 316
            $warnings = self::checkWarnings($params);
317
            if (count($warnings)) {
317
            if (count($warnings) > 0) {
318 318
               $params['options']['canedit'] = false;
319 319
               return $params;
320 320
            }