Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Posts of just spaces are filtered out.

  • Loading branch information...
commit db95cf2eca84c94bd8f7adfc45311194d1297f1e 1 parent fa4f7d0
Forest Basford forest-janrain authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 php/janrain-engage-php-sdk-0.1/sample/posts.php
4 php/janrain-engage-php-sdk-0.1/sample/posts.php
View
@@ -43,7 +43,9 @@
if ( !empty($row['provider']) ) {
$row['provider'] = $provider_map[$row['provider']];
}
- $posts[] = $row;
+ if ( !empty($row['comment']) && preg_replace('/\s+/', '', $row['comment']) != '' ) {
+ $posts[] = $row;
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.