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

fix if styleSheetId cannot be retrieved #8

Open
wants to merge 8 commits into
base: r9_develop
Choose a base branch
from

Conversation

ingoj
Copy link

@ingoj ingoj commented Dec 2, 2024

we sometimes encountered an error if the stylesheetId could not be retrieved and was a null. Just a little fix to prevent this

mBeym and others added 8 commits February 22, 2024 13:26
* Fix missing cast
* Fix wrong parameter type used
* Fix no data found for table error
* Fix undefined property access
* Fix undefined array access
* Fix mail send error causing hard crash
* Fix missing cast

* Fix missing cast

* Fix wrong parameter type used

* Fix missing cast

* Fix missing cast

* Fix missing cast

* Fix no data found

* Fix undefined property access

* Fix undefined array access

* Fix mail error causing crash

* Fix issue with REQUEST_URI modification in libs (#6)
@mBeym mBeym self-assigned this Dec 4, 2024
@mBeym mBeym changed the base branch from r9_release to r9_develop December 6, 2024 13:46
Comment on lines +55 to +58
$style_id = $parent_gui->getObject()->getStyleSheetId();
if ($style_id == null) {
$style_id = 0;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can see, $parent_gui->getObject()->getStyleSheetId() already defaults to 0 and never null.

See: ilObjStyleSheet::lookupObjectStyle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants