Merge pull request #103 from EngineGPDev/Undefined-variable-$buy

Undefined variable $buy
This commit is contained in:
Sergei Solovev 2024-05-27 15:23:04 +03:00 committed by GitHub
commit 20357fb67f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 18 additions and 0 deletions

View file

@ -69,6 +69,8 @@ if (isset($url['subsection']) and in_array($url['subsection'], $aSub)) {
$images = plugins::images($plugin['images'], $plugin['id']);
$buy = null;
if ($plugin['price']) {
$sql->query('SELECT `id` FROM `plugins_buy` WHERE `plugin`="' . $plugin['id'] . '" AND `server`="' . $id . '" LIMIT 1');
$buy = $sql->num();

View file

@ -69,6 +69,8 @@ if (isset($url['subsection']) and in_array($url['subsection'], $aSub)) {
$images = plugins::images($plugin['images'], $plugin['id']);
$buy = null;
if ($plugin['price']) {
$sql->query('SELECT `id` FROM `plugins_buy` WHERE `plugin`="' . $plugin['id'] . '" AND `server`="' . $id . '" LIMIT 1');
$buy = $sql->num();

View file

@ -69,6 +69,8 @@ if (isset($url['subsection']) and in_array($url['subsection'], $aSub)) {
$images = plugins::images($plugin['images'], $plugin['id']);
$buy = null;
if ($plugin['price']) {
$sql->query('SELECT `id` FROM `plugins_buy` WHERE `plugin`="' . $plugin['id'] . '" AND `server`="' . $id . '" LIMIT 1');
$buy = $sql->num();

View file

@ -69,6 +69,8 @@ if (isset($url['subsection']) and in_array($url['subsection'], $aSub)) {
$images = plugins::images($plugin['images'], $plugin['id']);
$buy = null;
if ($plugin['price']) {
$sql->query('SELECT `id` FROM `plugins_buy` WHERE `plugin`="' . $plugin['id'] . '" AND `server`="' . $id . '" LIMIT 1');
$buy = $sql->num();

View file

@ -69,6 +69,8 @@ if (isset($url['subsection']) and in_array($url['subsection'], $aSub)) {
$images = plugins::images($plugin['images'], $plugin['id']);
$buy = null;
if ($plugin['price']) {
$sql->query('SELECT `id` FROM `plugins_buy` WHERE `plugin`="' . $plugin['id'] . '" AND `server`="' . $id . '" LIMIT 1');
$buy = $sql->num();

View file

@ -69,6 +69,8 @@ if (isset($url['subsection']) and in_array($url['subsection'], $aSub)) {
$images = plugins::images($plugin['images'], $plugin['id']);
$buy = null;
if ($plugin['price']) {
$sql->query('SELECT `id` FROM `plugins_buy` WHERE `plugin`="' . $plugin['id'] . '" AND `server`="' . $id . '" LIMIT 1');
$buy = $sql->num();

View file

@ -69,6 +69,8 @@ if (isset($url['subsection']) and in_array($url['subsection'], $aSub)) {
$images = plugins::images($plugin['images'], $plugin['id']);
$buy = null;
if ($plugin['price']) {
$sql->query('SELECT `id` FROM `plugins_buy` WHERE `plugin`="' . $plugin['id'] . '" AND `server`="' . $id . '" LIMIT 1');
$buy = $sql->num();

View file

@ -69,6 +69,8 @@ if (isset($url['subsection']) and in_array($url['subsection'], $aSub)) {
$images = plugins::images($plugin['images'], $plugin['id']);
$buy = null;
if ($plugin['price']) {
$sql->query('SELECT `id` FROM `plugins_buy` WHERE `plugin`="' . $plugin['id'] . '" AND `server`="' . $id . '" LIMIT 1');
$buy = $sql->num();

View file

@ -69,6 +69,8 @@ if (isset($url['subsection']) and in_array($url['subsection'], $aSub)) {
$images = plugins::images($plugin['images'], $plugin['id']);
$buy = null;
if ($plugin['price']) {
$sql->query('SELECT `id` FROM `plugins_buy` WHERE `plugin`="' . $plugin['id'] . '" AND `server`="' . $id . '" LIMIT 1');
$buy = $sql->num();