defendtheweb / hackthis.co.uk

HackThis!!
http://www.hackthis.co.uk
Other
46 stars 55 forks source link

Update view.php #186

Closed xb8 closed 8 years ago

xb8 commented 8 years ago

line 105, a bug in the code doesn't let a user edit a submitted but not approved article (redirects always to $id=1 and not the correct one) <?=$article->id;?> instead of <?=$id;?> should do the job?

LauraRozier commented 8 years ago

<?=$article->id;?> instead of <?=$id;?> should do the job?

You should know this if you tested it. :P