projectnami icon indicating copy to clipboard operation
projectnami copied to clipboard

🔨 [PHP 7.4] Fixed warning for usage of Invalid Index

Open A-Matt opened this issue 3 years ago • 0 comments

Fixed a Warning which can show up with the Edit Page screen (and potentially more) when a get_var returns back no rows and tries to access an invalid index within the Array.

This fix checks if the SQLSRV has returned back any rows, and will access the 0th row as expected, if not then it will return null as expected within the Documentation. (and likely what is returned already)

Fixes: #448

A-Matt avatar Jun 15 '21 10:06 A-Matt