summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/fb_example.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fb_example.module b/contrib/fb_example.module
index 3affc1d..5c34df5 100644
--- a/contrib/fb_example.module
+++ b/contrib/fb_example.module
@@ -365,7 +365,7 @@ function fb_example_fb_user($op, $data, &$return) {
* building >> facebook apps >> canvas pages are disabled.
*/
function fb_example_preprocess_page(&$variables) {
- if (fb_canvas_is_iframe()) {
+ if (module_exists('fb_canvas') && fb_is_canvas()) {
// Process links in these regions.
foreach (array('header', 'footer', 'left', 'preface_first', 'preface_middle', 'preface_last') as $region) {
$variables[$region] = fb_canvas_process($variables[$region], array('add_target' => TRUE, 'absolute_links' => TRUE));