0
I have this error in the variable put to show the code only when you have the reference. but the error when you have nothing declared.
That is, when accessing the site with site.com/? ref=app (right), but when access without, it gives the error below.
Error when nothing is set in URL:
Warning: Undefined array key "ref" in \header.php on line 1
My current code name:
<?php if ($_GET["ref"] == "app") : ?>
<style media="screen">
#sidebar {
display: none !important;
}
.navbar {
display: none !important;
}
</style>
<?php endif; ?>