Skip to content

Commit

Permalink
added: the if conditional to check if classes already declared
Browse files Browse the repository at this point in the history
  • Loading branch information
hameedullah committed Jul 20, 2011
1 parent 3711988 commit e34bb2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/smartmetabox.class.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

if ( ! class_exists( 'SmartMetaBox' ) ) :
class SmartMetaBox {

protected $prefix;
Expand Down Expand Up @@ -208,4 +209,5 @@ function render_smart_meta_box() {
echo "</table>";
}
}
endif; // end if class SmartMetaBox exists
?>
2 changes: 2 additions & 0 deletions classes/smartmetaboxfield.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

if ( ! class_exists( 'SmartMetaBoxField' ) ) :
class SmartMetaBoxField {
function __construct( $field ) {
$this->properties = $field;
}
}
endif; // end if class SmartMetaBoxField exists

0 comments on commit e34bb2a

Please sign in to comment.