Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

another php8 fix #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions lib/BibTex_pear.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
* @link http://pear.php.net/package/PaperciteStructures_BibTex
*/

require_once 'PEAR.php' ;
require_once 'bibtex_common.php';

require_once(__DIR__."/PEAR.php");
require_once("bibtex_common.php");


/**
Expand Down Expand Up @@ -570,9 +571,9 @@ function _checkEqualSign($entry, $position)
//Then it is possible that the braces are equal even if the '=' is in an equation.
if ($ret) {
$entrycopy = trim($entry);
$lastchar = $entrycopy{strlen($entrycopy)-1};
$lastchar = $entrycopy[strlen($entrycopy)-1];
if (',' == $lastchar) {
$lastchar = $entrycopy{strlen($entrycopy)-2};
$lastchar = $entrycopy[strlen($entrycopy)-2];
}
if ('"' == $lastchar) {
//The return value is set to false
Expand Down