mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-11 05:18:40 +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;
|
$lastfontreqstyle = null;
|
||||||
$lastfontstyle = 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;
|
$lastitalic = $this->FontSize * 0.15 * Mpdf::SCALE;
|
||||||
} else {
|
} else {
|
||||||
$lastitalic = 0;
|
$lastitalic = 0;
|
||||||
|
|
@ -11366,7 +11366,7 @@ class Mpdf implements \Psr\Log\LoggerAwareInterface
|
||||||
} elseif (isset($_SERVER['PHP_SELF'])) {
|
} elseif (isset($_SERVER['PHP_SELF'])) {
|
||||||
$currentPath = dirname($_SERVER['PHP_SELF']);
|
$currentPath = dirname($_SERVER['PHP_SELF']);
|
||||||
} else {
|
} else {
|
||||||
$currentPath = __DIR__ . '/../../';
|
$currentPath = '/';
|
||||||
}
|
}
|
||||||
$currentPath = str_replace("\\", "/", $currentPath);
|
$currentPath = str_replace("\\", "/", $currentPath);
|
||||||
if ($currentPath == '/') {
|
if ($currentPath == '/') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user