Closed mikocevar closed 5 months ago
@parallels999 This already exists in the same file.
if (($page_to_appear < 0) || ($page_to_appear > $this->get_page_count())) {
return p_error("invalid page number");
}
Sorry, I didn't see it, my bad
No need to! Your suggestion is on point anyway.
Looking at the code I think there is a bug in this check. If $this->get_page_count()
returns 3 (in case of 3 pages) and the $page_to_appear is zero based (as per docblock description), then there will be an error.
($page_to_appear > $this->get_page_count() - 1)
would be correct. Need to confirm this and I will make another PR.
Great, needs a release
you are right... release 1.4.2. done
Parameter is not passed to
set_signature_appearance
method. This patch makes the optional parameter working.