Warning: Attempt to read property "result" on null in C:\inetpub\vhosts\bateriafina.pub\httpdocs\inc.class\buscar.php on line 24

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in C:\inetpub\vhosts\bateriafina.pub\httpdocs\inc.class\buscar.php:24 Stack trace: #0 C:\inetpub\vhosts\bateriafina.pub\httpdocs\index.php(195): buscar->__construct() #1 {main} thrown in C:\inetpub\vhosts\bateriafina.pub\httpdocs\inc.class\buscar.php on line 24