mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-10 21:08:41 +00:00
null check fix
This commit is contained in:
parent
2b8ca15e66
commit
e71a79ec95
|
|
@ -6553,7 +6553,7 @@ class Mpdf implements \Psr\Log\LoggerAwareInterface
|
|||
$lastfontreqstyle = null;
|
||||
$lastfontstyle = null;
|
||||
}
|
||||
if ($blockdir == 'ltr' && strpos($lastfontreqstyle, "I") !== false && strpos($lastfontstyle, "I") === false) { // Artificial italic
|
||||
if ($blockdir == 'ltr' && strpos($lastfontreqstyle ?? '', "I") !== false && strpos($lastfontstyle ?? '', "I") === false) { // Artificial italic
|
||||
$lastitalic = $this->FontSize * 0.15 * Mpdf::SCALE;
|
||||
} else {
|
||||
$lastitalic = 0;
|
||||
|
|
@ -11366,7 +11366,7 @@ class Mpdf implements \Psr\Log\LoggerAwareInterface
|
|||
} elseif (isset($_SERVER['PHP_SELF'])) {
|
||||
$currentPath = dirname($_SERVER['PHP_SELF']);
|
||||
} else {
|
||||
$currentPath = __DIR__ . '/../../';
|
||||
$currentPath = '/';
|
||||
}
|
||||
$currentPath = str_replace("\\", "/", $currentPath);
|
||||
if ($currentPath == '/') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user