mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2026-04-27 00:25:50 +03:00
[GH-ISSUE #65] Missing a closing bracket in misc.php #36
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
question
upstream
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsedit#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lamehost on GitHub (Dec 22, 2015).
Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/65
There's a trivial typo in includes/misc.inc.php .
Line 7 misses a closing bracket:
Thank you
@job commented on GitHub (Dec 22, 2015):
This patch gets rid of the PHP error, but I suspect there still is a bug in the logic.
@tuxis-ie commented on GitHub (Dec 22, 2015):
I do see the error, I don't see where the logical error would be?
Mark Schouten
@job commented on GitHub (Dec 22, 2015):
@tuxis-ie after adding the
)the nsedit page kept asking me to configure access to the API, although I configured it. We can debug when you are back from vacation@ruben-herold commented on GitHub (Dec 30, 2015):
Hi I found the error:
empty also matches to "0" or 0:
In other words, it will return true if the variable is an empty string, false, array(), NULL, “0?, 0, and an unset variable.
So I would fix ist this way:
-if ((!isset($apipass) or empty($apipass)) or (!isset($apiip) or empty($apiip)) or (!isset($apiport) or empty($apiport)) or (!isset($apivers) or empty($apivers)) {
+if ((!isset($apipass) or empty($apipass)) or (!isset($apiip) or empty($apiip)) or (!isset($apiport) or empty($apiport)) or (!isset($apivers) or is_null($apivers))) {