ProjectNami / projectnami

WordPress powered by Microsoft SQL Server
http://projectnami.org
Other
270 stars 137 forks source link

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

Open A-Matt opened 3 years ago

A-Matt commented 3 years ago

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