Watermark addon issue

whenever i enable my watermark addon i face below php error


PHP NOTICE
MESSAGE
UNDEFINED INDEX: COMPANY_ID
ERROR AT
APP/ADDONS/WATERMARKS/FUNC.PHP, LINE: 329
BACKTRACE
APP/ADDONS/WATERMARKS/FUNC.PHP :FILE
329 :LINE
}CLOSURE{ :FUNCTION
APP/FUNCTIONS/FN.CONTROL.PHP :FILE
120 :LINE
FN_WATERMARKS_GENERATE_THUMBNAIL_POST :FUNCTION
APP/FUNCTIONS/FN.IMAGES.PHP :FILE
1134 :LINE
FN_SET_HOOK :FUNCTION
APP/FUNCTIONS/FN.IMAGES.PHP :FILE
1192 :LINE
FN_GENERATE_THUMBNAIL :FUNCTION
APP/TYGH/TOOLS/FORMATTER.PHP :FILE
131 :LINE
FN_IMAGE_TO_DISPLAY :FUNCTION
APP/TYGH/TEMPLATE/SNIPPET/TABLE/PRODUCTVARIABLE.PHP :FILE
137 :LINE
ASIMAGE

here is what is in my FUNC.PHP, LINE: 329

image

anyone can help me fix it?

This was fixed long time ago, in 4.12.2. Please apply the attached .diff to apply the fix.
c9b8f5be443364f85577afe1c47134c07f83071b.diff (2.6 KB)

1 Like