Skip to content

improv. error 500 without id#44

Merged
Eywek merged 3 commits into
MineWeb:masterfrom
nivcoo:patch-8
Dec 30, 2019
Merged

improv. error 500 without id#44
Eywek merged 3 commits into
MineWeb:masterfrom
nivcoo:patch-8

Conversation

@nivcoo

@nivcoo nivcoo commented Jun 20, 2019

Copy link
Copy Markdown
Member

No description provided.

function ajax_get($id = null)
{ // Permet d'afficher le contenu du modal avant l'achat (ajax)
$this->response->type('json');
$this->autoRender = false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Au lieu de fuckup les tabulations et faire encore plus de if comme ça fais juste:

if (!isset($id)) {
	return;
}

Par contre je comprends pas trop comment ce bug peut avoir lieu

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je sais pas c’est google qui m’a averti de cette erreur donc je l’ai patch

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non mais ok pour le bug, mais au lieu de faire un if gigantesque, tu met juste ca au debut

@nivcoo

nivcoo commented Dec 3, 2019

Copy link
Copy Markdown
Member Author

j'avais pas vu ce que tu demandais ;x

@Eywek Eywek merged commit 1a966d5 into MineWeb:master Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants