Permalink
Browse files

Posts of just spaces are filtered out.

  • Loading branch information...
1 parent fa4f7d0 commit db95cf2eca84c94bd8f7adfc45311194d1297f1e @forest-janrain forest-janrain committed May 17, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 php/janrain-engage-php-sdk-0.1/sample/posts.php
@@ -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;
+ }
}
}
}

0 comments on commit db95cf2

Please sign in to comment.